Refactor Dockerfiles for Gitea runners: streamline package installations, remove unnecessary dependencies, and ensure non-root execution

This commit is contained in:
2026-07-07 20:50:04 +02:00
parent 58ca1561ec
commit c1c2d1c83b
4 changed files with 30 additions and 38 deletions
@@ -1,18 +1,10 @@
FROM local/gitea-runner-base:latest
# go-build runner profile: dedicated Go build environment.
# Base image sets USER runner; switch back to root for package installs
USER root
RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
curl \
git \
golang-go \
jq \
make \
openssh-client \
python3 \
python3-pip \
rsync \
unzip \
zip \
&& rm -rf /var/lib/apt/lists/*
# Default to non-root execution
USER runner