Skip to content

Commit

Permalink
fix: 🐛 docker permissions and environment variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
juanAngel committed Jan 14, 2023
1 parent 294d7c0 commit 8326c8a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ ENV DB_PASSWORD=nostr-ts-relay

WORKDIR /app
RUN apk add --no-cache --update git
RUN mkdir /app/.nostr && chown 1000:1000 /app/.nostr
RUN mkdir /home/node/tor && chown node:node /home/node/tor && chmod 777 /home/node/tor

COPY --from=build /build/dist .

RUN npm install --omit=dev --quiet

USER 1000:1000
USER node:node

CMD ["node", "src/index.js"]

0 comments on commit 8326c8a

Please # to comment.