Created
April 5, 2019 13:05
-
-
Save dtelaroli/3dfb08959bbfd0e6bd35dc92f7a7b0d4 to your computer and use it in GitHub Desktop.
Simple Glassfish on Docker
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 openjdk:8-jdk | |
RUN curl -O https://download.oracle.com/glassfish/4.1.2/release/glassfish-4.1.2.zip -H 'Connection: keep-alive' --compressed \ | |
&& unzip -o glassfish-4.1.2.zip \ | |
&& rm glassfish-4.1.2.zip | |
COPY <java_webapp>.war|.jar|ear /glassfish4/glassfish/domains/domain1/autodeploy/ | |
EXPOSE 8080 | |
CMD ["/glassfish4/bin/asadmin", "start-domain", "-v"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment