Skip to content

Commit

Permalink
update dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
bloodcloak committed Jan 15, 2025
1 parent d3f6566 commit 5d4107e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,15 @@ RUN \
addgroup --system --gid 1001 nodejs && \
adduser --system --uid 1001 nodejs

COPY --chown=1001:1001 db ./db
COPY --chown=1001:1001 package.json ./
COPY --chown=1001:1001 --from=deps /app/node_modules ./node_modules
COPY --chown=1001:1001 --from=builder /app/dist ./dist
COPY --chown=1001:1001 db ./db

USER nodejs
EXPOSE 3000
ENV NODE_ENV=production
ENV IS_DOCKER=true

VOLUME ["/app/db"]

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

0 comments on commit 5d4107e

Please sign in to comment.