Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
FROM node:24-alpine AS build
# Node LTS majors only (even numbers): odd majors get about eight months of support.
FROM node:26-alpine AS build

WORKDIR /app

COPY package.json pnpm-lock.yaml pnpm-workspace.yaml ./
RUN corepack enable && pnpm install --frozen-lockfile
# Node 25 and later don't bundle corepack, so install it from npm. Corepack then
# runs the pnpm version that package.json's packageManager names.
RUN npm install -g corepack@0.36.0 && corepack enable && pnpm install --frozen-lockfile

COPY . .

Expand All @@ -19,7 +22,7 @@ ENV VITE_DOCS_URL=$VITE_DOCS_URL

RUN pnpm build

FROM nginx:1.29-alpine
FROM nginx:1.31-alpine

COPY --from=build /app/dist /usr/share/nginx/html
COPY docker/nginx.conf.template /app/nginx.conf.template
Expand Down
Loading