-
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathDockerfile
More file actions
19 lines (14 loc) · 692 Bytes
/
Dockerfile
File metadata and controls
19 lines (14 loc) · 692 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM --platform=${BUILDPLATFORM} curlimages/curl:8.19.0 AS build-stage0
ARG TARGETOS
ARG TARGETARCH
ARG TARGETPLATFORM
ARG JV_VERSION
RUN curl -L -o /tmp/jv-${TARGETOS}-${TARGETARCH}.tar.gz https://github.com/jenkins-infra/jenkins-version/releases/download/${JV_VERSION}/jenkins-version-${TARGETOS}-${TARGETARCH}.tar.gz && \
tar -xvzf /tmp/jv-${TARGETOS}-${TARGETARCH}.tar.gz -C /tmp && \
chmod a+x /tmp/jv
FROM --platform=${BUILDPLATFORM} alpine:3.23.4
LABEL maintainer="Gareth Evans <gareth@bryncynfelin.co.uk>"
COPY --from=build-stage0 /tmp/jv /usr/bin/jv
COPY github-actions-entrypoint.sh /usr/bin/github-actions-entrypoint.sh
ENTRYPOINT [ "/usr/bin/jv" ]
CMD ["--help"]