Skip to content

Instantly share code, notes, and snippets.

@dtelaroli
Created April 5, 2019 13:05
Show Gist options
  • Save dtelaroli/3dfb08959bbfd0e6bd35dc92f7a7b0d4 to your computer and use it in GitHub Desktop.
Save dtelaroli/3dfb08959bbfd0e6bd35dc92f7a7b0d4 to your computer and use it in GitHub Desktop.
Simple Glassfish on Docker
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