full custom build

This commit is contained in:
2025-10-01 22:26:57 +05:30
parent deb8ff296a
commit 973e0a1cb2

View File

@@ -1,4 +1,15 @@
FROM drone/drone-runner-docker:latest FROM alpine:3.20
USER root
RUN ["apk", "add", "--no-cache", "ca-certificates", "bash"] # Install dependencies
RUN apk add --no-cache bash ca-certificates curl git
# Add Drone runner binary
ADD https://github.com/drone/drone-runner-docker/releases/download/v2.13.0/drone-runner-docker_linux_amd64 /usr/local/bin/drone-runner-docker
RUN chmod +x /usr/local/bin/drone-runner-docker
# Create user
RUN adduser -D -h /home/drone drone
USER drone USER drone
# Entrypoint
ENTRYPOINT ["/usr/local/bin/drone-runner-docker"]