Skip to content

Commit

Permalink
Fix Docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
fcrespel authored Aug 2, 2024
1 parent 17781a8 commit e81ef80
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/main/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,8 @@ COPY WEB-INF/lib-provided ./lib-provided
COPY META-INF ./META-INF
COPY WEB-INF/classes .

# Create system user
RUN useradd -d @docker.app.directory@ -G users -u 1000 default
USER 1000

# Set runtime parameters
USER 1000
ENV JAVA_TOOL_OPTIONS="-Xverify:none -XX:+TieredCompilation -XX:TieredStopAtLevel=1"
ENTRYPOINT ["java","-cp",".:./lib/*:./lib-provided/*","@start-class@"]
HEALTHCHECK --interval=60s --timeout=30s --start-period=60s --retries=3 CMD curl -sSf http://localhost:8080/actuator/health/liveness || exit 1
Expand Down

0 comments on commit e81ef80

Please sign in to comment.