Skip to content

Commit

Permalink
Fixes rh-messaging#484: Do not use non-numeric UID in Dockerfile
Browse files Browse the repository at this point in the history
It appears that not setting USER at all will take care of this.
  • Loading branch information
jiridanek committed Oct 28, 2022
1 parent decb18d commit 3f22bf0
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,3 @@ COPY cli-paho-java/target/cli-paho-java-1.2.2-SNAPSHOT-*.jar /main/cli-paho.jar

COPY create_links.sh /main
RUN bash /main/create_links.sh


RUN groupadd cli-java && useradd -d /var/lib/cli-java -ms /bin/bash -g cli-java -G cli-java cli-java
USER cli-java:cli-java

0 comments on commit 3f22bf0

Please sign in to comment.