Files
tehran_taj/apps/api/Dockerfile
T

18 lines
499 B
Docker
Raw Normal View History

2026-09-10 13:58:50 +03:30
FROM docker.arvancloud.ir/node:20-bookworm-slim
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-10 13:58:50 +03:30
# Force Debian OpenSSL 3 engine (bookworm-slim); avoid wrong musl/openssl-1.1 pick
ENV PRISMA_QUERY_ENGINE_LIBRARY=/app/vendor/.prisma/client/libquery_engine-debian-openssl-3.0.x.so.node
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"]