Build insert-user command too

This commit is contained in:
3wc 2021-06-01 22:49:57 +02:00
parent b63e9b43c4
commit 2f79da3c1d
2 changed files with 5 additions and 1 deletions

View File

@ -19,11 +19,15 @@ WORKDIR /app
## executable of our Go program ## executable of our Go program
RUN cd cmd/server \ RUN cd cmd/server \
&& go mod download go.cryptoscope.co/secretstream \ && go mod download go.cryptoscope.co/secretstream \
&& go build . \
&& cd ../insert-user \
&& go build . && go build .
RUN apk del build-dependencies \ RUN apk del build-dependencies \
&& rm -rf /var/cache/apk/* /tmp/* && rm -rf /var/cache/apk/* /tmp/*
VOLUME /app/data
COPY entrypoint.sh /docker-entrypoint.sh COPY entrypoint.sh /docker-entrypoint.sh
## Our start command which kicks off ## Our start command which kicks off

View File

@ -1,3 +1,3 @@
#!/bin/sh #!/bin/sh
/app/cmd/server/server -https-domain "$DOMAIN" /app/cmd/server/server -https-domain "$DOMAIN" -repo /app/data