Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Padi-owasp committed May 8, 2023
1 parent d02b0e3 commit b142779
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,12 @@ RUN mvn package -f /home/app/pom.xml
# Package stage
#
# FROM openjdk:18-oraclelinux8
FROM amazoncorretto:17.0.7-al2023-headless
# amazoncorretto:17.0.7-al2023
FROM amazoncorretto:17.0.7-alpine3.17

# for regular linux
RUN useradd --user-group --system --create-home --no-log-init app
# RUN useradd --user-group --system --create-home --no-log-init app
# for alpine
# RUN adduser --system app
RUN adduser --system app

RUN mkdir -p /app
RUN chown app /app
Expand Down

0 comments on commit b142779

Please sign in to comment.