Adds a multi-stage docker file to resolve #6 #10

Merged
dan merged 6 commits from NetworkString/server:add-multistage-dockerfile into trunk 2021-08-17 16:58:52 +00:00
1 changed files with 3 additions and 2 deletions
Showing only changes of commit b929e7734c - Show all commits

View File

@ -38,7 +38,7 @@ RUN cd src/app && go build
FROM alpine:latest
#Specify user account aliases
ENV TOR_USER=_tor CWTCH_USER=_cwtch
ENV TOR_USER=_tor CWTCH_USER=_cwtch CWTCH_HOME=/var/lib/cwtch
# Installing dependencies of Tor
RUN apk --no-cache add --update \
@ -69,5 +69,6 @@ VOLUME /etc/tor /var/lib/tor /var/lib/cwtch
ENTRYPOINT ["docker-entrypoint"]
#USER $CWTCH_USER
CMD ["env CWTCH_HOME=/var/lib/cwtch /usr/local/bin/cwtch --exportTofuBundle"]
#CMD ["/usr/local/bin/cwtch --exportTofuBundle"]
CMD ["/usr/local/bin/cwtch","--exportTofuBundle"]