fix some for api container
This commit is contained in:
+2
-3
@@ -2,15 +2,14 @@ FROM docker.arvancloud.ir/node:20-bookworm
|
||||
|
||||
# فقط کپی — هیچ install/build داخل ایمیج نیست.
|
||||
# لوکال: pnpm run build:api:release
|
||||
# مهم: apps/api/release/node_modules باید داخل گیت باشد.
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
ENV NODE_ENV=production
|
||||
ENV PORT=3000
|
||||
|
||||
COPY apps/api/release/ ./
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
# بهجای .bin (روی ویندوز shim میسازد) مستقیم entry لینوکسی Prisma
|
||||
CMD ["sh", "-c", "node node_modules/prisma/build/index.js migrate deploy && node app.js"]
|
||||
CMD ["sh", "/app/docker-entrypoint.sh"]
|
||||
|
||||
Reference in New Issue
Block a user