Skip to content

Commit

Permalink
Run chmod as root during build
Browse files Browse the repository at this point in the history
  • Loading branch information
nickclyde committed Feb 3, 2025
1 parent 58e2dbe commit b353faa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions query-connector/Dockerfile.keycloak
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM quay.io/keycloak/keycloak:26.1
USER root

# Copy all realm files
COPY ./keycloak/*.json /opt/keycloak/
Expand All @@ -8,4 +9,5 @@ COPY ./keycloak/select-realm.sh /opt/keycloak/select-realm.sh
RUN chmod +x /opt/keycloak/select-realm.sh

# Use script as the entrypoint
USER 1000
CMD ["/opt/keycloak/select-realm.sh"]

0 comments on commit b353faa

Please sign in to comment.