fix: update Dockerfile
All checks were successful
Spell Check / Spell Check with Typos (push) Successful in 4s

This commit is contained in:
HAM 2026-01-12 14:36:47 +07:00
parent 8d2b8e192b
commit 84137e031c

View file

@ -6,7 +6,9 @@ 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
RUN apt-get update && apt-get install -y openssl fontconfig
RUN fc-cache -f -v
WORKDIR /app
COPY . .
@ -17,19 +19,17 @@ RUN pnpm run build
FROM base AS deps
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --prod --frozen-lockfile
RUN pnpm prisma generate
FROM node:23-slim AS prod
ENV NODE_ENV=production
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
COPY entrypoint.sh .
RUN chmod u+x ./entrypoint.sh
RUN chmod +x ./entrypoint.sh
ENTRYPOINT ["./entrypoint.sh"]