Skip to content

Commit b8c73f2

Browse files
committed
node:24-slim and remove docker warnings
1 parent 7030e23 commit b8c73f2

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ jobs:
3939
with:
4040
context: .
4141
push: true
42+
platforms: linux/amd64
4243
tags: registry.cern.ch/itopcptoolkit/itopcptoolkit:latest
4344
build-args: ${{ steps.buildargs.outputs.args }}
4445
secrets: |

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ARG AB_TAG=25.2.86
66
ARG TCT_VERSION=v2.24.0
77

88
# ── Stage 1: build the React frontend ────────────────────────────────────────
9-
FROM --platform=linux/amd64 node:20-slim AS frontend-build
9+
FROM --platform=$BUILDPLATFORM node:24-slim AS frontend-build
1010
WORKDIR /app/frontend
1111
COPY frontend/package*.json ./
1212
RUN npm install
@@ -15,7 +15,8 @@ RUN npm run build
1515

1616
# ── Stage 2: runtime (AnalysisBase + Flask + TopCPToolkit) ───────────────────
1717
ARG AB_TAG
18-
FROM --platform=linux/amd64 gitlab-registry.cern.ch/atlas/athena/analysisbase:${AB_TAG}
18+
ARG TARGETPLATFORM
19+
FROM --platform=$TARGETPLATFORM gitlab-registry.cern.ch/atlas/athena/analysisbase:${AB_TAG}
1920

2021
USER root
2122
SHELL ["/bin/bash", "-c"]

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.6.1
1+
0.6.2

build_and_serve.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
# or : docker build --secret id=cern_token,env=CERN_TOKEN --build-arg AB_TAG=25.2.86 --build-arg TCT_VERSION=v2.24.0 -t tct-gui .
88

99
docker build \
10+
--platform linux/amd64 \
1011
--secret id=cern_token,env=CERN_TOKEN \
1112
--build-arg AB_TAG=25.2.86 \
1213
--build-arg TCT_VERSION=v2.24.0 \

0 commit comments

Comments
 (0)