official arm64 build
This commit is contained in:
@@ -1,15 +1,13 @@
|
||||
FROM alpine:3.20
|
||||
# Use official ARM64 Drone runner image as base
|
||||
FROM drone/drone-runner-docker:1.8-linux-arm64
|
||||
|
||||
# Install dependencies
|
||||
RUN apk add --no-cache bash ca-certificates curl git
|
||||
# Switch to root to install CA certificates
|
||||
USER root
|
||||
|
||||
# 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
|
||||
# Install CA certificates
|
||||
RUN apk add --no-cache ca-certificates
|
||||
|
||||
# Create user
|
||||
RUN adduser -D -h /home/drone drone
|
||||
# Switch back to drone user
|
||||
USER drone
|
||||
|
||||
# Entrypoint
|
||||
ENTRYPOINT ["/usr/local/bin/drone-runner-docker"]
|
||||
# Entrypoint is already set in base image
|
||||
|
||||
Reference in New Issue
Block a user