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
|
# Switch to root to install CA certificates
|
||||||
RUN apk add --no-cache bash ca-certificates curl git
|
USER root
|
||||||
|
|
||||||
# Add Drone runner binary
|
# Install CA certificates
|
||||||
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 apk add --no-cache ca-certificates
|
||||||
RUN chmod +x /usr/local/bin/drone-runner-docker
|
|
||||||
|
|
||||||
# Create user
|
# Switch back to drone user
|
||||||
RUN adduser -D -h /home/drone drone
|
|
||||||
USER drone
|
USER drone
|
||||||
|
|
||||||
# Entrypoint
|
# Entrypoint is already set in base image
|
||||||
ENTRYPOINT ["/usr/local/bin/drone-runner-docker"]
|
|
||||||
|
|||||||
Reference in New Issue
Block a user