Skip to content

Commit

Permalink
Add node user to tor group
Browse files Browse the repository at this point in the history
  • Loading branch information
MrNaif2018 committed Jul 31, 2022
1 parent 0e56291 commit 8f96a27
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
10 changes: 2 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,13 @@ FROM node:16-alpine
WORKDIR /src

COPY --from=builder /src .
COPY --from=builder /src/docker-entrypoint.sh /usr/local/bin/

ENV GOSU_VERSION 1.14
RUN apk add --no-cache ca-certificates dpkg && \
dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')" && \
wget -qO /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch" && \
apk del --no-network dpkg && \
chmod +x /usr/local/bin/gosu
RUN addgroup -g 19001 tor && addgroup node tor

LABEL org.bitcartcc.image=admin
ENV NUXT_HOST 0.0.0.0
ENV NUXT_PORT 4000

EXPOSE ${NUXT_PORT}
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]
USER node
CMD ["sh"]
8 changes: 0 additions & 8 deletions docker-entrypoint.sh

This file was deleted.

0 comments on commit 8f96a27

Please sign in to comment.