Skip to content

Commit 5d4107e

Browse files
committed
update dockerfile
1 parent d3f6566 commit 5d4107e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,15 @@ RUN \
2020
addgroup --system --gid 1001 nodejs && \
2121
adduser --system --uid 1001 nodejs
2222

23+
COPY --chown=1001:1001 db ./db
2324
COPY --chown=1001:1001 package.json ./
2425
COPY --chown=1001:1001 --from=deps /app/node_modules ./node_modules
2526
COPY --chown=1001:1001 --from=builder /app/dist ./dist
26-
COPY --chown=1001:1001 db ./db
2727

2828
USER nodejs
2929
EXPOSE 3000
3030
ENV NODE_ENV=production
31-
ENV IS_DOCKER=true
31+
32+
VOLUME ["/app/db"]
3233

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

0 commit comments

Comments
 (0)