Skip to content

Commit 6df807d

Browse files
committed
completed
1 parent de1cd7f commit 6df807d

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

Dockerfile

+3-7
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
FROM java:8
2-
ARG WEBCONTEXT=simplewebappdev
3-
4-
RUN curl -O http://archive.apache.org/dist/tomcat/tomcat-8/v8.0.20/bin/apache-tomcat-8.0.20.tar.gz
5-
RUN tar xzf apache-tomcat-8.0.20.tar.gz
6-
COPY simplewebapp.war apache-tomcat-8.0.20/webapps/${WEBCONTEXT}
1+
FROM tomcat
2+
COPY target/simplewebapp.war /usr/local/tomcat/webapps
73
EXPOSE 8080
8-
CMD apache-tomcat-8.0.20/bin/startup.sh && tail -f apache-tomcat-8.0.20/logs/catalina.out
4+
CMD ["catalina.sh", "run"]

0 commit comments

Comments
 (0)