27 lines
858 B
Docker
27 lines
858 B
Docker
FROM docker.io/library/golang:1.17.2 as driver-builder
|
|
|
|
# renovate: datasource=git-tags depName=https://git.shivering-isles.com/github-mirror/JonasProgrammer/docker-machine-driver-hetzner.git
|
|
ARG HETZNER_VERSION=3.5.0
|
|
|
|
ENV GO111MODULE=on
|
|
|
|
RUN mkdir -p /go/src/app
|
|
|
|
WORKDIR /go/src/app
|
|
|
|
RUN git clone --depth 3 --branch "$HETZNER_VERSION" https://git.shivering-isles.com/github-mirror/JonasProgrammer/docker-machine-driver-hetzner.git ./
|
|
|
|
RUN go build -o docker-machine-driver-hetzner
|
|
|
|
FROM docker.io/gitlab/gitlab-runner:v14.3.2
|
|
|
|
LABEL maintainer="Sheogorath <sheogorath@shivering-isles.com>"
|
|
|
|
RUN true \
|
|
&& apt-get update \
|
|
&& apt-get upgrade -y \
|
|
&& apt-get install -y sudo \
|
|
&& apt-get clean && apt-get purge && rm -r /var/lib/apt/lists/* \
|
|
&& true
|
|
|
|
COPY --from=driver-builder /go/src/app/docker-machine-driver-hetzner /usr/local/bin/
|