diff --git a/Dockerfile b/Dockerfile index ba2676b..120dbdd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,11 +19,15 @@ WORKDIR /app ## executable of our Go program RUN cd cmd/server \ && go mod download go.cryptoscope.co/secretstream \ + && go build . \ + && cd ../insert-user \ && go build . RUN apk del build-dependencies \ && rm -rf /var/cache/apk/* /tmp/* +VOLUME /app/data + COPY entrypoint.sh /docker-entrypoint.sh ## Our start command which kicks off diff --git a/entrypoint.sh b/entrypoint.sh index 339a4ec..53520d5 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,3 +1,3 @@ #!/bin/sh -/app/cmd/server/server -https-domain "$DOMAIN" +/app/cmd/server/server -https-domain "$DOMAIN" -repo /app/data