fix(docker): ensure /app/node_modules/.prisma directory is created before prisma generate
Deploy Canina / deploy (push) Failing after 23s

This commit is contained in:
parsa aghaei committed 2026-08-17 13:31:24 +03:30
1 parent 30670d7f6d
commit c8f3ce0cde
7 files changed
+28502 -28481

No files matched your search

+1 -1
View File
@@ -15,7 +15,7 @@ RUN if [ -n "$NPM_REGISTRY" ]; then \
COPY package*.json ./
RUN npm ci --prefer-offline --no-audit
COPY . .
RUN rm -rf dist && https_proxy=http://172.17.0.1:8888 http_proxy=http://172.17.0.1:8888 ./node_modules/.bin/prisma generate && npm run build
RUN mkdir -p /app/node_modules/.prisma && rm -rf dist && https_proxy=http://172.17.0.1:8888 http_proxy=http://172.17.0.1:8888 ./node_modules/.bin/prisma generate && npm run build
FROM node:20-alpine
USER root