Files
tehran_taj/apps/api/Dockerfile
T

20 lines
631 B
Docker
Raw Normal View History

FROM docker.arvancloud.ir/node:20-bookworm
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
# NOTE: full "bookworm" (not -slim/-alpine) on purpose — Prisma's query engine
# links against libssl.so.3, which the slim/alpine variants do not ship, and the
# deploy host cannot reach apt/apk mirrors to install it.
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
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"]