push to 32.0.2
This commit is contained in:
parent
7866ffc615
commit
ea303674e2
3 changed files with 17 additions and 16 deletions
28
Containerfile
Normal file
28
Containerfile
Normal file
|
@ -0,0 +1,28 @@
|
|||
FROM docker.io/alpine:3.19 AS builder
|
||||
|
||||
ENV VERSION=23.0.2
|
||||
ENV SHA256_SUM=4711535fb8846d34388ff79e01d83b3fd1b7701c0520bc8cb59739a6bfdab612
|
||||
|
||||
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 docker.io/thallian/alpine-s6:3.19-3.1.6.2
|
||||
|
||||
ENV JAVA_OPTS_APPEND="-Djava.net.preferIPv4Stack=false -Djava.net.preferIPv6Addresses=true"
|
||||
|
||||
RUN addgroup -g 2222 keycloak
|
||||
RUN adduser -h /home/keycloak -u 2222 -D -G keycloak keycloak
|
||||
|
||||
RUN apk add --no-cache \
|
||||
openjdk21-jre-headless \
|
||||
bash
|
||||
|
||||
COPY --from=builder --chown=keycloak:keycloak /keycloak /home/keycloak/server
|
||||
|
||||
RUN /home/keycloak/server/bin/kc.sh build --db=postgres --metrics-enabled=true
|
||||
RUN chown -R keycloak:keycloak /home/keycloak
|
||||
|
||||
ADD /rootfs /
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue