From c2f75858b7a05efaa40a92b56960c014ab1a1e27 Mon Sep 17 00:00:00 2001 From: Ty J Everett Date: Thu, 22 Oct 2026 12:24:40 -0700 Subject: [PATCH] Migrate Node 20 container definitions to patched Node 22 and verify Linux images --- .github/workflows/container-validation.yml | 22 ++++++++++++++++++++++ apps/api/Dockerfile | 4 ++-- apps/web/Dockerfile | 2 +- 3 files changed, 25 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/container-validation.yml diff --git a/.github/workflows/container-validation.yml b/.github/workflows/container-validation.yml new file mode 100644 index 0000000..e832f3c --- /dev/null +++ b/.github/workflows/container-validation.yml @@ -0,0 +1,22 @@ +name: Container validation +on: + pull_request: + push: + branches: [main] +permissions: + contents: read +jobs: + build: + runs-on: ubuntu-latest + timeout-minutes: 15 + strategy: + fail-fast: false + matrix: + app: [api, web] + steps: + - uses: actions/checkout@v6 + - name: Build the Linux application image + run: docker build --platform linux/amd64 --tag metabridge-${{ matrix.app }}:check apps/${{ matrix.app }} + - name: Verify the API native runtime + if: matrix.app == 'api' + run: test "$(docker run --rm --entrypoint node metabridge-api:check --version)" = v22.23.4 diff --git a/apps/api/Dockerfile b/apps/api/Dockerfile index 9b8f4e9..3ec829e 100644 --- a/apps/api/Dockerfile +++ b/apps/api/Dockerfile @@ -1,5 +1,5 @@ # ---- build stage ---- -FROM node:20-alpine AS build +FROM node:22.23.4-alpine@sha256:fe4f6d74e20370acb04ad889077d14d0f64a9c8ea6a42bc60cddf1e844699914 AS build WORKDIR /app COPY package*.json ./ @@ -8,7 +8,7 @@ COPY . . RUN npm run build # ---- runtime stage ---- -FROM node:20-alpine +FROM node:22.23.4-alpine@sha256:fe4f6d74e20370acb04ad889077d14d0f64a9c8ea6a42bc60cddf1e844699914 WORKDIR /app ENV NODE_ENV=production diff --git a/apps/web/Dockerfile b/apps/web/Dockerfile index 3fa374e..d4ce468 100644 --- a/apps/web/Dockerfile +++ b/apps/web/Dockerfile @@ -1,5 +1,5 @@ # ---- build stage ---- -FROM node:20-alpine AS build +FROM node:22.23.4-alpine@sha256:fe4f6d74e20370acb04ad889077d14d0f64a9c8ea6a42bc60cddf1e844699914 AS build WORKDIR /app ARG VITE_API_URL=""