-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile.goreleaser
22 lines (20 loc) · 1 KB
/
Dockerfile.goreleaser
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# This Dockerfile variant is for usage with GoReleaser, which reuses the binaries
# compiled in configured builds instead of re-compiling it in a container.
FROM alpine:3.12 as ca-certificates
RUN apk update && apk add --no-cache ca-certificates && update-ca-certificates
COPY exoscale-cloud-controller-manager /
FROM busybox:1.32.0
ARG VERSION
ARG VCS_REF
ARG BUILD_DATE
LABEL org.label-schema.build-date=${BUILD_DATE} \
org.label-schema.vcs-ref=${VCS_REF} \
org.label-schema.vcs-url="https://github.com/exoscale/exoscale-cloud-controller-manager" \
org.label-schema.version=${VERSION} \
org.label-schema.name="exoscale-cloud-controller-manager" \
org.label-schema.vendor="Exoscale" \
org.label-schema.description="Exoscale Cloud Controller Manager" \
org.label-schema.schema-version="1.0"
COPY --from=ca-certificates /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=ca-certificates /exoscale-cloud-controller-manager /
ENTRYPOINT ["/exoscale-cloud-controller-manager"]