-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
21 lines (15 loc) · 770 Bytes
/
Dockerfile
File metadata and controls
21 lines (15 loc) · 770 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
############# builder #############
FROM eu.gcr.io/gardener-project/3rd/golang:1.17.8 AS builder
ENV BINARY_PATH=/go/bin
WORKDIR /go/src/github.com/23technologies/machine-controller-manager-provider-ionos
COPY . .
RUN hack/build.sh
############# base #############
FROM eu.gcr.io/gardener-project/3rd/alpine:3.15 as base
RUN apk add --update bash curl tzdata
WORKDIR /
############# machine-controller #############
FROM base AS machine-controller
LABEL org.opencontainers.image.source="https://github.com/23technologies/machine-controller-manager-provider-ionos"
COPY --from=builder /go/bin/machine-controller /machine-controller
ENTRYPOINT ["/machine-controller"]