Skip to content

Commit

Permalink
KEYCLOAK-11590 Add unprivileged user
Browse files Browse the repository at this point in the history
  • Loading branch information
oyelekci authored and Bruno Oliveira da Silva committed Oct 9, 2019
1 parent da51583 commit 58b31e9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gatekeeper/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ LABEL Name=keycloak-gatekeeper \
Url=https://github.com/keycloak/keycloak-gatekeeper \
Help=https://issues.jboss.org/projects/KEYCLOAK

RUN adduser -D -u 1000 gatekeeper

RUN apk add --no-cache ca-certificates curl tar

WORKDIR "/opt"
Expand All @@ -18,4 +20,6 @@ RUN curl -fssL "https://downloads.jboss.org/keycloak/$KEYCLOAK_VERSION/gatekeepe

RUN apk del curl tar

USER 1000

ENTRYPOINT [ "/opt/keycloak-gatekeeper" ]

0 comments on commit 58b31e9

Please sign in to comment.