diff --git a/nest-backend/Dockerfile b/nest-backend/Dockerfile index 334f0bd..b89b096 100644 --- a/nest-backend/Dockerfile +++ b/nest-backend/Dockerfile @@ -10,6 +10,7 @@ RUN npm ci COPY . . RUN npx prisma generate RUN npm run build +RUN npx tsc --module commonjs --target ES2022 --esModuleInterop --skipLibCheck --outDir dist prisma/seed.ts FROM node:22-slim @@ -28,4 +29,4 @@ COPY prisma ./prisma EXPOSE 3000 -CMD ["sh", "-c", "npx prisma migrate deploy && node dist/index.js"] +CMD ["sh", "-c", "npx prisma migrate deploy && node dist/seed.js && node dist/index.js"]