Updated docker image

This commit is contained in:
2024-12-24 20:19:23 +01:00
parent a460ae7b4b
commit 3bc5d108d1
4 changed files with 72 additions and 90 deletions

View File

@@ -1,4 +1,4 @@
FROM node:22.10.0-alpine3.20 AS cache
FROM node:22.12.0-alpine3.21 AS cache
WORKDIR /cache
@@ -6,18 +6,16 @@ COPY package.json .
COPY pnpm-lock.yaml .
COPY patches ./patches
RUN corepack enable
RUN pnpm install
RUN corepack enable && pnpm install --frozen-lockfile --prod
# main image
FROM node:22.10.0-alpine3.20
FROM node:22.12.0-alpine3.21
WORKDIR /app
COPY --from=cache /cache/node_modules /app/node_modules
COPY . .
RUN apk add --no-cache ffmpeg
RUN corepack enable
RUN pnpm build
RUN corepack enable && pnpm build
CMD [ "pnpm", "start" ]