forked from keycloak/keycloak-operator
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile
20 lines (13 loc) · 577 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM registry.ci.openshift.org/openshift/release:golang-1.13 AS build-env
COPY . /src/
RUN cd /src && \
make code/compile && \
echo "Build SHA1: $(git rev-parse HEAD)" && \
echo "$(git rev-parse HEAD)" > /src/BUILD_INFO
# final stage
FROM registry.access.redhat.com/ubi8/ubi-minimal:latest
##LABELS
RUN microdnf update && microdnf clean all && rm -rf /var/cache/yum/*
COPY --from=build-env /src/BUILD_INFO /src/BUILD_INFO
COPY --from=build-env /src/tmp/_output/bin/keycloak-realm-operator /usr/local/bin
ENTRYPOINT ["/usr/local/bin/keycloak-realm-operator"]