forked from estahn/k8s-image-swapper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
33 lines (28 loc) · 1.58 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#FROM quay.io/skopeo/stable:v1.2.0 AS skopeo
#FROM gcr.io/distroless/base-debian10
#FROM debian:10
#COPY --from=skopeo /usr/bin/skopeo /skopeo
# TODO: Using alpine for now due to easier installation of skopeo
# Will use distroless after incorporating skopeo into the webhook directly
FROM alpine:3.20.3
RUN ["apk", "add", "--no-cache", "--repository=http://dl-cdn.alpinelinux.org/alpine/edge/community", "skopeo>=1.2.0"]
COPY k8s-image-swapper /
ENTRYPOINT ["/k8s-image-swapper"]
ARG BUILD_DATE
ARG VCS_REF
LABEL maintainer="k8s-image-swapper <https://github.com/estahn/k8s-image-swapper/issues>" \
org.opencontainers.image.title="k8s-image-swapper" \
org.opencontainers.image.description="Mirror images into your own registry and swap image references automatically." \
org.opencontainers.image.url="https://github.com/estahn/k8s-image-swapper" \
org.opencontainers.image.source="https://github.com/estahn/k8s-image-swapper" \
org.opencontainers.image.vendor="estahn" \
org.label-schema.schema-version="1.0" \
org.label-schema.name="k8s-image-swapper" \
org.label-schema.description="Mirror images into your own registry and swap image references automatically." \
org.label-schema.url="https://github.com/estahn/k8s-image-swapper" \
org.label-schema.vcs-url="[email protected]:estahn/k8s-image-swapper.git" \
org.label-schema.vendor="estahn" \
org.opencontainers.image.revision="$VCS_REF" \
org.opencontainers.image.created="$BUILD_DATE" \
org.label-schema.vcs-ref="$VCS_REF" \
org.label-schema.build-date="$BUILD_DATE"