Skip to content
Closed
Show file tree
Hide file tree
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
6 changes: 3 additions & 3 deletions frontend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# syntax=docker/dockerfile:1
# TODO: can't use vanilla alpine version since python is needed for gql-codegen stuff.
FROM node:20 AS builder-base
FROM node:26 AS builder-base
WORKDIR /app
# Version of corepack distributed with node currently (2025-02-04) has a bug that prevents PNPM installation; latest version has the bugfix
# node 25+ doesn't ship corepack anymore, so we have to install it ourselves
RUN npm install -g corepack@latest
RUN corepack enable && corepack prepare pnpm@10.24.0 --activate

Expand All @@ -19,7 +19,7 @@ ENV VITE_APP_VERSION=$APP_VERSION

RUN --mount=type=cache,target=/root/.local/share/pnpm/store pnpm run build

FROM node:20-alpine
FROM node:26-alpine
# container would not receive SIGTERM from docker when shutting down so Docker would force kill
# the container after 10s. This will make shutdown faster because the SIGTERM will be handled appropriately.
# https://maximorlov.com/process-signals-inside-docker-containers/
Expand Down
4 changes: 2 additions & 2 deletions frontend/dev.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# syntax=docker/dockerfile:1
# TODO: can't use vanilla alpine version since python is needed for gql-codegen stuff.
FROM node:20 AS builder
FROM node:26 AS builder

# Version of corepack distributed with node currently (2025-02-04) has a bug that prevents PNPM installation; latest version has the bugfix
# node 25+ doesn't ship corepack anymore, so we have to install it ourselves
RUN npm install -g corepack@latest
RUN corepack enable && corepack prepare pnpm@10.24.0 --activate
WORKDIR /app
Expand Down
Loading