Skip to content

Commit

Permalink
Merge pull request #10634 from andreas-eberle/simplify-fastjar-docker…
Browse files Browse the repository at this point in the history
…file

Simplify fast jar dockerfiles by only using a single copy command.
  • Loading branch information
gsmet committed Jul 16, 2020
2 parents f5a773b + cc4435c commit d7b0510
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,7 @@ RUN microdnf install curl ca-certificates ${JAVA_PACKAGE} \
# Configure the JAVA_OPTIONS, you can add -XshowSettings:vm to also display the heap size.
ENV JAVA_OPTIONS="-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager"

COPY --chown=1001 ${build_dir}/quarkus-app/lib/ /deployments/lib/
COPY --chown=1001 ${build_dir}/quarkus-app/*.jar /deployments/
COPY --chown=1001 ${build_dir}/quarkus-app/app/ /deployments/app/
COPY --chown=1001 ${build_dir}/quarkus-app/quarkus/ /deployments/quarkus/
COPY --chown=1001 ${build_dir}/quarkus-app /deployments/

EXPOSE 8080
USER 1001
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,7 @@ RUN microdnf install curl ca-certificates ${JAVA_PACKAGE} \
# Configure the JAVA_OPTIONS, you can add -XshowSettings:vm to also display the heap size.
ENV JAVA_OPTIONS="-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager"

COPY ${build_dir}/quarkus-app/lib/* /deployments/lib/
COPY ${build_dir}/quarkus-app/*.jar /deployments/
COPY ${build_dir}/quarkus-app/app/* /deployments/app/
COPY ${build_dir}/quarkus-app/quarkus/* /deployments/quarkus/
COPY ${build_dir}/quarkus-app /deployments/

EXPOSE 8080
USER 1001
Expand Down

0 comments on commit d7b0510

Please sign in to comment.