From 5d4107e1b430825ef00de9dd1b9552e503d921b8 Mon Sep 17 00:00:00 2001 From: Bloodcloak <59000966+bloodcloak@users.noreply.github.com> Date: Tue, 14 Jan 2025 20:08:57 -0500 Subject: [PATCH] update dockerfile --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index f212995..bd2be49 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] \ No newline at end of file