mirror of
https://github.com/PeterMaquiran/tvone-api.git
synced 2026-04-22 03:55:50 +00:00
+3
-3
@@ -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"]
|
||||
Reference in New Issue
Block a user