fix: no prisma module
All checks were successful
Spell Check / Spell Check with Typos (push) Successful in 5s
All checks were successful
Spell Check / Spell Check with Typos (push) Successful in 5s
This commit is contained in:
parent
ad544bc544
commit
c70c467e92
1 changed files with 6 additions and 5 deletions
11
Dockerfile
11
Dockerfile
|
|
@ -6,9 +6,7 @@ ENV PATH="$PNPM_HOME:$PATH"
|
|||
RUN corepack enable
|
||||
RUN corepack prepare pnpm@9.15.0 --activate
|
||||
|
||||
RUN apt-get update && apt-get install -y openssl fontconfig
|
||||
RUN fc-cache -f -v
|
||||
|
||||
RUN apt-get update && apt-get install -y openssl
|
||||
WORKDIR /app
|
||||
COPY . .
|
||||
|
||||
|
|
@ -20,11 +18,14 @@ RUN pnpm run build
|
|||
FROM base AS deps
|
||||
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --prod --frozen-lockfile
|
||||
|
||||
FROM base AS prod
|
||||
ENV NODE_ENV="production"
|
||||
FROM node:23-slim AS prod
|
||||
ENV NODE_ENV=production
|
||||
WORKDIR /app
|
||||
|
||||
COPY --from=deps /app/node_modules /app/node_modules
|
||||
|
||||
COPY --from=build /app/node_modules/.prisma /app/node_modules/.prisma
|
||||
|
||||
COPY --from=build /app/dist /app/dist
|
||||
COPY --from=build /app/prisma /app/prisma
|
||||
COPY --from=build /app/static /app/static
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue