Created
December 14, 2015 12:10
-
-
Save mike-boddin/4da9d4c6def0e097b275 to your computer and use it in GitHub Desktop.
Codenvy Dockerfile to run Spring Boot Apps
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 java:8 | |
EXPOSE 8080 | |
ENV CODENVY_APP_PORT_8080_HTTP 8080 | |
RUN mkdir -p /home/user/app | |
WORKDIR /home/user/app | |
ADD $app$ /home/user/$app$ | |
RUN unzip -q /home/user/$app$ -d /home/user/app && \ | |
rm /home/user/$app$ | |
CMD java -jar application.jar $args$ run |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment