Refactor Dockerfiles for Gitea runners: update package installations, remove obsolete files, and enhance build configurations
This commit is contained in:
@@ -1,13 +1,23 @@
|
||||
FROM docker.io/gitea/runner:latest
|
||||
# Stage 1: Extract the gitea-runner binary from the official Alpine-based image
|
||||
FROM docker.io/gitea/runner:latest AS runner
|
||||
|
||||
USER root
|
||||
# Stage 2: Debian-based image with native glibc support
|
||||
FROM debian:bookworm-slim
|
||||
|
||||
RUN apk add --no-cache \
|
||||
COPY --from=runner /usr/local/bin/gitea-runner /usr/local/bin/gitea-runner
|
||||
COPY --from=runner /usr/local/bin/run.sh /usr/local/bin/run.sh
|
||||
RUN chmod +x /usr/local/bin/run.sh
|
||||
|
||||
ENTRYPOINT ["/usr/local/bin/run.sh"]
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
bash \
|
||||
ca-certificates \
|
||||
curl \
|
||||
git \
|
||||
jq \
|
||||
nodejs \
|
||||
openssh-client \
|
||||
unzip \
|
||||
zip
|
||||
zip \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
Reference in New Issue
Block a user