18 lines
499 B
Docker
18 lines
499 B
Docker
FROM docker.arvancloud.ir/node:20-bookworm-slim
|
|
|
|
# Pre-built on the developer machine:
|
|
# pnpm build:release
|
|
WORKDIR /app
|
|
|
|
ENV NODE_ENV=production
|
|
# Vendored Prisma lives in ./vendor (not node_modules — that path is gitignored)
|
|
ENV NODE_PATH=/app/vendor
|
|
# 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
|
|
|
|
COPY release/ ./
|
|
|
|
EXPOSE 3000
|
|
|
|
CMD ["node", "app.js"]
|