fix prisma schema build stage and install openssl

This commit is contained in:
Ruslan Bakiev
2026-02-20 13:06:26 +07:00
parent 9770643321
commit 2d27f20f06
2 changed files with 10 additions and 2 deletions

View File

@@ -2,6 +2,10 @@ FROM node:22-bookworm-slim
WORKDIR /app/delivery
RUN apt-get update -y \
&& apt-get install -y --no-install-recommends openssl ca-certificates \
&& rm -rf /var/lib/apt/lists/*
COPY package*.json ./
RUN npm ci --legacy-peer-deps

View File

@@ -2,13 +2,17 @@ FROM node:22-bookworm-slim
WORKDIR /app/frontend
RUN apt-get update -y \
&& apt-get install -y --no-install-recommends openssl ca-certificates \
&& rm -rf /var/lib/apt/lists/*
COPY package*.json ./
RUN npm ci --legacy-peer-deps
RUN npm ci --ignore-scripts --legacy-peer-deps
COPY . .
# Build server bundle at image build time.
RUN npx prisma generate && npm run build
RUN npm run postinstall && npm run build
ENV NODE_ENV=production
ENV NITRO_HOST=0.0.0.0