File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -2,12 +2,12 @@ FROM ubuntu:18.04
2
2
3
3
RUN apt-get -y update
4
4
RUN apt-get -y install openjdk-8-jdk wget
5
- RUN mkdir /usr/local/tomcat
6
- RUN wget http://apachemirror.wuchna.com/tomcat/tomcat-8/v8.5.54/bin/apache-tomcat-8.5.54.tar.gz -O /tmp/tomcat.tar.gz
7
- RUN cd /tmp&& tar xvfz tomcat.tar.gz
8
- RUN cp -Rv /tmp/apache-tomcat-8.5.54/* /usr/local/tomcat/
9
5
10
- COPY sampleapp.war /usr/local/tomcat/webapps/
6
+ RUN wget https://archive.apache.org/dist/tomcat/tomcat-8/v8.5.55/bin/apache-tomcat-8.5.55.tar.gz -O /tmp/tomcat.tar.gz
7
+ RUN cd /tmp && tar xvfz tomcat.tar.gz
8
+ RUN mv /tmp/apache-tomcat-8.5.55 /opt/tomcat
9
+
10
+ COPY sampleapp.war /opt/tomcat/webapps/
11
11
12
12
EXPOSE 8080
13
- CMD /usr/local /tomcat/bin/catalina.sh run
13
+ CMD /opt /tomcat/bin/catalina.sh run
You can’t perform that action at this time.
0 commit comments