-
Notifications
You must be signed in to change notification settings - Fork 63
/
Dockerfile
19 lines (18 loc) · 879 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# -----------------------------------------------------------------------------
#
# Note this Dockerfile is an skeleton that you can use as a starting point for
# your own Dockerfile. It is NOT intended to be used for production workloads.
#
# -----------------------------------------------------------------------------
FROM mcr.microsoft.com/openjdk/jdk:11-ubuntu
RUN apt-get update && \
apt-get install -y curl unzip
RUN export GLASSFISH_VERSION=7.0.13 && \
cd /opt && \
curl -L -o glassfish.zip https://github.com/eclipse-ee4j/glassfish/releases/download/${GLASSFISH_VERSION}/glassfish-${GLASSFISH_VERSION}.zip && \
unzip glassfish.zip && \
rm glassfish.zip && \
mv glassfish7 glassfish
EXPOSE 8080
COPY target/ROOT.war /opt/glassfish/glassfish/domains/domain1/autodeploy/ROOT.war
CMD ["/opt/glassfish/glassfish/bin/asadmin", "start-domain", "-v"]