Skip to content

Commit

Permalink
fix(docker): change addgroup to groupadd
Browse files Browse the repository at this point in the history
  • Loading branch information
porritta committed Jul 24, 2024
1 parent ff382c0 commit 1e59014
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ VOLUME /tmp
COPY caab-service-${app_version}.jar caab-service.jar

EXPOSE 8080
RUN addgroup --system --gid 800 customgroup \
&& adduser --system --uid 800 --ingroup customgroup --shell /bin/sh customuser
RUN groupadd --system --gid 800 customgroup \
&& useradd --system --uid 800 --gid customgroup --shell /bin/sh customuser
RUN chown customuser:customgroup caab-service.jar
USER 800

Expand Down

0 comments on commit 1e59014

Please sign in to comment.