Skip to content

Commit

Permalink
fix docker file permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
Headary committed Jul 23, 2024
1 parent 92cd7da commit 26a6729
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,19 @@ RUN mv keycloak-${version} keycloak

# install provider and run
FROM eclipse-temurin:21
USER 1000:1000
WORKDIR /opt/keycloak

# enable health statistics
ENV KC_HEALTH_ENABLED=true
ENV KC_METRICS_ENABLED=true

COPY --chown=1000:1000 --chmod=744 docker/entrypoint.sh /app/entrypoint.sh
COPY --chown=1000:1000 config/ /app/config/
COPY --chmod=555 docker/entrypoint.sh /app/entrypoint.sh
COPY config/ /app/config/

COPY --from=builder --chown=1000:1000 /build/keycloak/ .
COPY --from=maven --chown=1000:1000 --chmod=644 /build/target/fksdb-keycloak-user-provider.jar providers/fksdb-provider.jar
COPY --from=maven --chmod=644 /build/target/fksdb-keycloak-user-provider.jar providers/fksdb-provider.jar

# enable custom user to write to certain system files
RUN chmod -R 777 lib && mkdir -m 777 data

ENTRYPOINT /app/entrypoint.sh

0 comments on commit 26a6729

Please sign in to comment.