This should allow the images to show the correct architecture when browsing Docker Hub. The below page shows the 1.8.2-linux-arm64 image as being OS/ARCH=linux/amd64. https://hub.docker.com/layers/drone/drone-runner-docker/1.8.2-linux-arm64/images/sha256-c3812c2fce625efb85dc6c8b04e1d15c208185bd336e58007082d0c3571a066a?context=explore
23 lines
684 B
Docker
23 lines
684 B
Docker
FROM alpine:3 as alpine
|
|
RUN apk add -U --no-cache ca-certificates
|
|
|
|
RUN wget https://github.com/tmate-io/tmate/releases/download/2.4.0/tmate-2.4.0-static-linux-amd64.tar.xz
|
|
RUN tar -xf tmate-2.4.0-static-linux-amd64.tar.xz
|
|
RUN mv tmate-2.4.0-static-linux-amd64/tmate /bin/
|
|
RUN chmod +x /bin/tmate
|
|
|
|
FROM --platform=linux/amd64 alpine:3
|
|
EXPOSE 3000
|
|
|
|
ENV GODEBUG netdns=go
|
|
ENV DRONE_PLATFORM_OS linux
|
|
ENV DRONE_PLATFORM_ARCH amd64
|
|
|
|
COPY --from=alpine /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
|
COPY --from=alpine /bin/tmate /bin/
|
|
|
|
LABEL com.centurylinklabs.watchtower.stop-signal="SIGINT"
|
|
|
|
ADD release/linux/amd64/drone-runner-docker /bin/
|
|
ENTRYPOINT ["/bin/drone-runner-docker"]
|