Skip to content

Commit faec2a3

Browse files
committed
build: update base Docker image to Ubuntu 24.04
1 parent 01eea3e commit faec2a3

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

docker/Dockerfile

+4-5
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ RUN npx redoc-cli build openapi.yml -o index.html --title 'phenix API'
4040

4141

4242
# ** gobuilder **
43-
FROM golang:1.20.7 AS gobuilder
43+
FROM golang:1.24.1 AS gobuilder
4444

4545
RUN apt update \
4646
&& apt install -y protobuf-compiler xz-utils
@@ -83,7 +83,7 @@ RUN CGO_ENABLED=0 GOOS=linux go install -trimpath ./...
8383

8484

8585
# ** Build the phenix image **
86-
FROM ubuntu:22.04
86+
FROM ubuntu:24.04
8787

8888
# General image metadata
8989
# Reference: https://github.com/opencontainers/image-spec/blob/main/annotations.md
@@ -150,16 +150,15 @@ ARG PIP_INDEX_URL="https://pypi.org/simple"
150150

151151
# Do this before installing phenix-apps so minimega package is latest version
152152
COPY --from=minimega /opt/minimega/lib /tmp/minimega
153-
RUN python3 -m pip install --no-cache-dir /tmp/minimega
153+
RUN python3 -m pip install --break-system-packages --no-cache-dir /tmp/minimega
154154

155155
# Allow installing from a fork of sceptre-phenix-apps that could
156156
# exist on GitHub or elsewhere.
157157
ARG APPS_REPO=github.com/sandialabs/sceptre-phenix-apps
158158
ARG APPS_BRANCH=main
159159

160160
# Install phenix user apps
161-
RUN python3 -m pip install \
162-
--no-cache-dir \
161+
RUN python3 -m pip install --break-system-packages --no-cache-dir \
163162
"git+https://${APPS_REPO}.git@${APPS_BRANCH}#egg=phenix-apps&subdirectory=src/python"
164163

165164
# Copy binaries from gobuilder stage

0 commit comments

Comments
 (0)