keycloak/Dockerfile

24 lines
704 B
Docker
Raw Normal View History

2021-08-22 12:30:25 +00:00
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
2021-08-22 12:59:55 +00:00
RUN chown -R keycloak:keycloak /home/keycloak
2021-08-22 12:30:25 +00:00
ADD /rootfs /