Skip to content

Commit c1d07f5

Browse files
committed
update base images and improved docker scout value
1 parent d7bf47a commit c1d07f5

File tree

4 files changed

+12
-9
lines changed

4 files changed

+12
-9
lines changed

.github/workflows/build-image-on-push.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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: |

runner/Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
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

35
RUN 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

4243
RUN apk add --no-cache bash \
4344
python3-dev

scheduler/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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
55
WORKDIR /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
1414
RUN apt-get update --fix-missing && \

starter/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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
RUN 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

1818
RUN apt-get update --fix-missing && \
1919
apt-get autoremove -y && \

0 commit comments

Comments
 (0)