Skip to content

Commit

Permalink
install with root
Browse files Browse the repository at this point in the history
  • Loading branch information
BraisVQ committed Sep 4, 2024
1 parent 559615a commit 88b2184
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions be-java-springboot/files/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,13 @@ ENV LOG4J_FORMAT_MSG_NO_LOOKUPS=true

COPY app.jar app.jar

USER root

RUN microdnf upgrade -y && \
microdnf clean all

USER 1001

EXPOSE 8080

CMD ["java","-Xmx512m", "-jar", "app.jar"]
4 changes: 4 additions & 0 deletions be-scala-play/files/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@ WORKDIR /app
COPY lib/* /app/lib/
COPY conf /app/conf/

USER root

RUN microdnf upgrade -y && \
microdnf clean all

USER 1001

EXPOSE 8080

ENTRYPOINT ["java", "-Duser.dir=/app", "-XX:+UnlockExperimentalVMOptions", "-cp", "conf/:lib/*"]
Expand Down

0 comments on commit 88b2184

Please sign in to comment.