FROM alpine:3.14 AS builder ENV VERSION=15.0.2 ENV SHA256_SUM=1915e33b3789eb426fda06676e39b9ddf3a7b563e1e2381a92a02da814dad047 RUN wget "https://github.com/keycloak/keycloak/releases/download/$VERSION/keycloak-$VERSION.tar.gz" RUN echo "$SHA256_SUM keycloak-$VERSION.tar.gz" | sha256sum -c - || exit 1 RUN mkdir -p /keycloak RUN tar xvf keycloak-$VERSION.tar.gz -C /keycloak --strip 1 FROM thallian/confd-env:latest RUN addgroup -g 2222 keycloak RUN adduser -h /home/keycloak -u 2222 -D -G keycloak keycloak RUN apk add --no-cache \ openjdk11-jre-headless COPY --from=builder --chown=keycloak:keycloak /keycloak /home/keycloak/server ADD /rootfs /