Files
tehran_taj/apps/api/Dockerfile
T

16 lines
305 B
Docker
Raw Normal View History

2026-09-10 12:17:47 +03:30
FROM docker.arvancloud.ir/node:20-alpine
2026-09-09 19:39:13 +03:30
2026-09-10 12:17:47 +03:30
# Pre-built on the developer machine:
2026-09-10 12:53:23 +03:30
# pnpm build:release
2026-09-09 19:39:13 +03:30
WORKDIR /app
2026-09-10 12:17:47 +03:30
ENV NODE_ENV=production
2026-09-10 12:53:23 +03:30
# Vendored Prisma lives in ./vendor (not node_modules — that path is gitignored)
ENV NODE_PATH=/app/vendor
2026-09-09 19:39:13 +03:30
2026-09-10 12:17:47 +03:30
COPY release/ ./
2026-09-09 19:39:13 +03:30
EXPOSE 3000
2026-09-10 12:17:47 +03:30
CMD ["node", "app.js"]