From a37ac40b78280a62c97d95e7bf3490697b54bcab Mon Sep 17 00:00:00 2001 From: Lucas Oskorep Date: Mon, 26 Oct 2026 22:20:06 -0400 Subject: [PATCH] build: manage node and pnpm with mise Frontend stage now builds on the mise image and installs node + pnpm from mise.toml instead of node:25 plus an unpinned global pnpm. --- .dockerignore | 2 -- Dockerfile | 7 ++++--- mise.toml | 5 +++++ 3 files changed, 9 insertions(+), 5 deletions(-) create mode 100644 mise.toml diff --git a/.dockerignore b/.dockerignore index 61d1c6b..81693b2 100644 --- a/.dockerignore +++ b/.dockerignore @@ -4,8 +4,6 @@ .gitea .github .idea -.mise.toml -mise.toml .docker Dockerfile docker-compose.yaml diff --git a/Dockerfile b/Dockerfile index 5521bb8..72898b4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,12 @@ -FROM docker.io/library/node:25 AS frontend-builder +FROM ghcr.io/jdx/mise:2026.10.19-debian AS frontend-builder LABEL authors="lucasoskorep" WORKDIR /build/mta-sign-ui -COPY mta-sign-ui/package.json mta-sign-ui/pnpm-lock.yaml* ./ +COPY mise.toml ./ +RUN mise trust && mise install node pnpm -RUN npm install -g pnpm@10.33.0 +COPY mta-sign-ui/package.json mta-sign-ui/pnpm-lock.yaml* ./ COPY mta-sign-ui/ ./ diff --git a/mise.toml b/mise.toml new file mode 100644 index 0000000..851354a --- /dev/null +++ b/mise.toml @@ -0,0 +1,5 @@ +[tools] +python = "3.14" +uv = "latest" +node = "26" +pnpm = "10.33.0"