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 7755681 commit d02b0e3
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,13 @@ RUN mvn package -f /home/app/pom.xml
# Package stage
#
# FROM openjdk:18-oraclelinux8
FROM amazoncorretto:17.0.7-al2023
# for regular linux RUN useradd --user-group --system --create-home --no-log-init app
FROM amazoncorretto:17.0.7-al2023-headless
# amazoncorretto:17.0.7-al2023

# for regular linux
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 d02b0e3

Please sign in to comment.