Updated docker image
This commit is contained in:
10
Dockerfile
10
Dockerfile
@@ -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" ]
|
||||
|
||||
Reference in New Issue
Block a user