23 lines
641 B
Docker
23 lines
641 B
Docker
# Stage 1: Extract the gitea-runner binary from the official Alpine-based image
|
|
FROM docker.io/gitea/runner:latest AS runner
|
|
|
|
# Stage 2: Debian-based image with native glibc support
|
|
FROM debian:bookworm-slim
|
|
|
|
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 \
|
|
&& rm -rf /var/lib/apt/lists/* |