Skip to content

Commit

Permalink
Fixes #408 - Refresh 'Build and push a Glassfish application to Azure…
Browse files Browse the repository at this point in the history
… Container Registry' example (#409)
  • Loading branch information
mnriem authored Jan 30, 2024
1 parent 4b863fd commit 1e6f1fb
Showing 1 changed file with 1 addition and 24 deletions.
25 changes: 1 addition & 24 deletions acr/glassfish/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,38 +5,15 @@
#
# -----------------------------------------------------------------------------

#
# Microsoft OpenJDK 11
#
FROM mcr.microsoft.com/openjdk/jdk:11-ubuntu

#
# Install curl.
#
RUN apt-get update && \
apt-get install -y curl unzip

#
# Install Glassfish
#
RUN export GLASSFISH_VERSION=7.0.3 && \
RUN export GLASSFISH_VERSION=7.0.11 && \
cd /opt && \
curl -L -o glassfish.zip https://www.eclipse.org/downloads/download.php?file=/ee4j/glassfish/glassfish-${GLASSFISH_VERSION}.zip && \
unzip glassfish.zip && \
rm glassfish.zip && \
mv glassfish7 glassfish

#
# Expose port 8080.
#
EXPOSE 8080

#
# Copy the WAR file.
#
COPY target/ROOT.war /opt/glassfish/glassfish/domains/domain1/autodeploy/ROOT.war

#
# Startup command.
#
CMD ["/opt/glassfish/glassfish/bin/asadmin", "start-domain", "-v"]

0 comments on commit 1e6f1fb

Please sign in to comment.