Created
August 17, 2020 20:00
-
-
Save bgarcial/8467897824971bf43070b97fb0682281 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# FROM maven:3.6.3-openjdk-15-alpine | |
FROM openjdk:14-alpine | |
MAINTAINER example.com | |
RUN mkdir -p /opt/demo-0.0.1/lib | |
# Setting application source code working directory | |
WORKDIR /opt/demo-0.0.1/ | |
RUN pwd | |
COPY /opt/demo-0.0.1/target/demo-0.0.1-SNAPSHOT.jar /opt/demo-0.0.1/lib/demo-0.0.1-SNAPSHOT.jar | |
# ADD target/demo-0.0.1-SNAPSHOT.jar /opt/demo-0.0.1/lib/ | |
RUN sh -c 'touch demo-0.0.1-SNAPSHOT.jar' | |
ENTRYPOINT ["java"] | |
CMD ["-jar", "/opt/demo-0.0.1/lib/target/demo-0.0.1-SNAPSHOT.jar"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment