From eee5181920c8a7978e685bcd891917d2159f7182 Mon Sep 17 00:00:00 2001 From: Peter Maquiran Date: Sun, 19 Apr 2026 21:28:59 +0100 Subject: [PATCH] change order --- dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dockerfile b/dockerfile index 298e553..19903ce 100644 --- a/dockerfile +++ b/dockerfile @@ -14,6 +14,9 @@ RUN pnpm install --frozen-lockfile # Replace 'prisma/schema.prisma' with your actual path if different COPY prisma ./prisma/ +# Ensure env exists (optional safety for containers) +RUN if [ ! -f .env ] && [ -f .env.example ]; then cp .env.example .env; fi + # Generate Prisma Client for the Linux environment RUN npx prisma generate @@ -25,8 +28,5 @@ RUN pnpm build EXPOSE 3000 -# Ensure env exists (optional safety for containers) -RUN if [ ! -f .env ] && [ -f .env.example ]; then cp .env.example .env; fi - # Using the path confirmed in your previous logs CMD ["node", "dist/src/main.js"] \ No newline at end of file