Skip to content

Commit 30e5588

Browse files
committed
fix: comments from pr (hadolint, python version)
1 parent d1e532f commit 30e5588

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

Containerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ ARG APP_HOME=/home/runner
66

77
USER root
88

9-
# System upgrade, Python 3.12/3.13/3.14 (deadsnakes), skopeo, buildah
9+
# System upgrade, Python 3.12/3.13 (deadsnakes), skopeo, buildah
1010
# hadolint ignore=DL3008
1111
RUN apt-get update \
1212
&& apt-get upgrade -y \
1313
&& apt-get install --no-install-recommends -y gnupg ca-certificates software-properties-common curl \
1414
&& DEBIAN_FRONTEND=noninteractive add-apt-repository -y ppa:deadsnakes/ppa \
1515
&& apt-get update \
1616
&& apt-get install --no-install-recommends -y \
17-
python3.12 python3.13 python3.14 \
17+
python3.12 python3.13 \
1818
skopeo buildah \
1919
&& apt-get autoremove -y \
2020
&& apt-get clean \
@@ -83,6 +83,9 @@ RUN curl -sSL -o /tmp/pack.tgz \
8383
# hadolint ignore=DL3013
8484
RUN pip install --no-cache-dir pre-commit
8585

86+
# Base stage must not end as root (hadolint DL3002)
87+
USER runner
88+
8689
FROM base as runtime
8790

8891
LABEL org.opencontainers.image.source=https://github.com/deerhide/python-github-runner

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Container image based on the [GitHub Actions Runner](https://github.com/actions/
1212

1313
| Tool | Version |
1414
|------|---------|
15-
| Python | 3.12, 3.13, 3.14 (via deadsnakes PPA) |
15+
| Python | 3.12, 3.13 (via deadsnakes PPA) |
1616
| Poetry | latest |
1717
| UV | latest |
1818

0 commit comments

Comments
 (0)