chore: update Dockerfile
All checks were successful
Spell Check / Spell Check with Typos (push) Successful in 4s
All checks were successful
Spell Check / Spell Check with Typos (push) Successful in 4s
This commit is contained in:
parent
c11fed9832
commit
134cc48de0
1 changed files with 2 additions and 4 deletions
|
|
@ -4,12 +4,12 @@ ENV PNPM_HOME="/pnpm"
|
|||
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 pnpm i -g prisma prisma-kysely
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY . .
|
||||
|
||||
FROM base AS deps
|
||||
|
|
@ -22,7 +22,6 @@ RUN pnpm prisma generate
|
|||
RUN pnpm run build
|
||||
|
||||
FROM base AS prod
|
||||
|
||||
ENV NODE_ENV="production"
|
||||
|
||||
COPY --from=deps /app/node_modules /app/node_modules
|
||||
|
|
@ -30,5 +29,4 @@ COPY --from=build /app/dist /app/dist
|
|||
COPY --from=base /app/static /app/static
|
||||
|
||||
RUN chmod u+x ./entrypoint.sh
|
||||
|
||||
ENTRYPOINT ["./entrypoint.sh"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue