update to keycloak 17
This commit is contained in:
parent
04326bd299
commit
93b4b018cc
11 changed files with 28 additions and 652 deletions
13
Dockerfile
13
Dockerfile
|
@ -1,22 +1,25 @@
|
|||
FROM alpine:3.14 AS builder
|
||||
FROM alpine:3.15 AS builder
|
||||
|
||||
ENV VERSION=15.0.2
|
||||
ENV SHA256_SUM=1915e33b3789eb426fda06676e39b9ddf3a7b563e1e2381a92a02da814dad047
|
||||
ENV VERSION=17.0.0
|
||||
ENV SHA256_SUM=710851fef83c5dad4dabd1eb7e79230d68879404217342c82fc35cbecb7ba8bd
|
||||
|
||||
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
|
||||
FROM thallian/alpine-s6: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
|
||||
openjdk17-jre-headless \
|
||||
bash
|
||||
|
||||
COPY --from=builder --chown=keycloak:keycloak /keycloak /home/keycloak/server
|
||||
|
||||
RUN /home/keycloak/server/bin/kc.sh build --db postgres
|
||||
RUN chown -R keycloak:keycloak /home/keycloak
|
||||
|
||||
ADD /rootfs /
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue