File tree Expand file tree Collapse file tree 4 files changed +12
-9
lines changed Expand file tree Collapse file tree 4 files changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -106,6 +106,8 @@ jobs:
106106 uses : docker/build-push-action@v5
107107 with :
108108 context : ${{ needs.init-vars.outputs.component }}
109+ provenance : true
110+ sbom : true
109111 # Load build result to `docker images`
110112 load : true
111113 tags : |
Original file line number Diff line number Diff line change 1- FROM python:3.11-alpine AS compile-image
1+ ARG BASE_IMAGE="python:3.12.10-alpine@sha256:9c51ecce261773a684c8345b2d4673700055c513b4d54bc0719337d3e4ee552e"
2+
3+ FROM ${BASE_IMAGE} AS compile-image
24
35RUN apk add --no-cache \
46 cargo \
@@ -35,9 +37,8 @@ RUN pip install --upgrade setuptools && \
3537 pip install --upgrade --user setuptools && \
3638 pip install -r requirements.txt --no-cache-dir --user
3739
38-
3940# # Runtime image
40- FROM python:3.11-alpine AS runtime-image
41+ FROM ${BASE_IMAGE} AS runtime-image
4142
4243RUN apk add --no-cache bash \
4344 python3-dev
Original file line number Diff line number Diff line change 1- # ## Compile Image
2- FROM python:3.11-slim-bookworm AS compile-image
1+ ARG BASE_IMAGE= "python:3.12-slim-bookworm@sha256:31a416db24bd8ade7dac5fd5999ba6c234d7fa79d4add8781e95f41b187f4c9a"
2+ FROM ${BASE_IMAGE} AS compile-image
33
44# Installation of the pip packages
55WORKDIR /opt/scheduler
@@ -8,7 +8,7 @@ RUN pip3 install -r /opt/scheduler/requirements.txt --user
88
99
1010# ## Runtime Image
11- FROM python:3.11-slim-bookworm AS runtime-image
11+ FROM ${BASE_IMAGE} AS runtime-image
1212
1313# Clean up && Installation of the apt packages
1414RUN apt-get update --fix-missing && \
Original file line number Diff line number Diff line change 1- # ## Compile Image
2- FROM python:3.11-slim-bookworm AS compile-image
1+ ARG BASE_IMAGE= "python:3.12-slim-bookworm@sha256:31a416db24bd8ade7dac5fd5999ba6c234d7fa79d4add8781e95f41b187f4c9a"
2+ FROM ${BASE_IMAGE} AS compile-image
33
44RUN apt-get update --fix-missing && \
55 apt-get install -y gcc
@@ -13,7 +13,7 @@ RUN pip install --upgrade setuptools && \
1313 pip install -r /opt/seatable-python-starter/requirements.txt --user --break-system-packages
1414
1515# ## Runtime image
16- FROM python:3.11-slim-bookworm AS runtime-image
16+ FROM ${BASE_IMAGE} AS runtime-image
1717
1818RUN apt-get update --fix-missing && \
1919 apt-get autoremove -y && \
You can’t perform that action at this time.
0 commit comments