fix: update Dockerfile
This commit is contained in:
parent
69601ce836
commit
1978b483e6
1 changed files with 6 additions and 6 deletions
12
Dockerfile
12
Dockerfile
|
|
@ -8,6 +8,9 @@ RUN apt-get update && apt-get install -y openssl fontconfig
|
|||
RUN fc-cache -f -v
|
||||
RUN pnpm i -g prisma prisma-kysely
|
||||
|
||||
RUN apt-get update && apt-get install -y openssl fontconfig
|
||||
RUN fc-cache -f -v
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY . .
|
||||
|
|
@ -19,20 +22,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"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue