From b6d8baebc1ae99f06ea31a75e99c4a0f0008fd60 Mon Sep 17 00:00:00 2001 From: Mikael Finstad Date: Fri, 13 Mar 2026 21:18:31 +0800 Subject: [PATCH 1/2] Update Dockerfile for node:22-alpine and dependencies Updated base image version to node:22-alpine and modified build dependencies handling. --- Dockerfile | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5ce604c25e..eab832cfe5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:22.18.0-alpine AS build +FROM node:22-alpine AS build # Create link to node on amd64 so that corepack can find it RUN if [ "$(uname -m)" == "aarch64" ]; then mkdir -p /usr/local/sbin/ && ln -s /usr/local/bin/node /usr/local/sbin/node; fi @@ -7,17 +7,19 @@ WORKDIR /app COPY . /app/ -RUN apk --update add --virtual native-dep \ - make gcc g++ python3 libgcc libstdc++ git && \ +# Ensure corepack is enabled (available in official Node images) and +# install only build-time dependencies using a named virtual package. +RUN corepack enable && \ + apk add --no-cache --virtual .build-deps build-base python3 libgcc libstdc++ git && \ (cd /app && corepack yarn workspaces focus @uppy/companion) && \ - apk del native-dep + apk del .build-deps RUN cd /app && corepack yarn workspace @uppy/companion build # Now remove all non-prod dependencies for a leaner image RUN cd /app && corepack yarn workspaces focus @uppy/companion --production -FROM node:22.18.0-alpine +FROM node:22-alpine WORKDIR /app From 635106e0d428f80d0666b3ea027075b218692ffe Mon Sep 17 00:00:00 2001 From: Mikael Finstad Date: Fri, 13 Mar 2026 22:52:07 +0800 Subject: [PATCH 2/2] Change Node.js version to 22.22.1-alpine Updated Node.js base image version in Dockerfile. --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index eab832cfe5..0845d49872 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:22-alpine AS build +FROM node:22.22.1-alpine AS build # Create link to node on amd64 so that corepack can find it RUN if [ "$(uname -m)" == "aarch64" ]; then mkdir -p /usr/local/sbin/ && ln -s /usr/local/bin/node /usr/local/sbin/node; fi @@ -19,7 +19,7 @@ RUN cd /app && corepack yarn workspace @uppy/companion build # Now remove all non-prod dependencies for a leaner image RUN cd /app && corepack yarn workspaces focus @uppy/companion --production -FROM node:22-alpine +FROM node:22.22.1-alpine WORKDIR /app