update
This commit is contained in:
17
tomcat/Dockerfile
Normal file
17
tomcat/Dockerfile
Normal file
@@ -0,0 +1,17 @@
|
||||
ARG ARCH
|
||||
FROM harbor.colben.cn/general/jdk$ARCH:8
|
||||
MAINTAINER Colben colbenlee@gmail.com
|
||||
ARG VERSION
|
||||
ADD --chown=root:root /ADD/ /opt/
|
||||
RUN tdnf makecache \
|
||||
&& tdnf -y install apache-tomcat-native \
|
||||
&& curl -LO https://mirrors.tuna.tsinghua.edu.cn/apache/tomcat/tomcat-8/v$VERSION/bin/apache-tomcat-$VERSION.tar.gz \
|
||||
&& tar zxf apache-tomcat-$VERSION.tar.gz \
|
||||
&& rm -rf /var/cache/tdnf apache-tomcat-$VERSION.tar.gz \
|
||||
&& mv apache-tomcat-$VERSION /opt/tomcat \
|
||||
&& cd /opt/tomcat \
|
||||
&& sed -i '69s/protocol.*$/protocol="org.apache.coyote.http11.Http11AprProtocol"/' conf/server.xml \
|
||||
&& tar zcf conf.tgz conf \
|
||||
&& rm -rf conf/* webapps/* bin/*.gz bin/*.bat BUILDING.txt CONTRIBUTING.md LICENSE NOTICE README.md RELEASE-NOTES RUNNING.txt
|
||||
CMD ["/opt/ccmd"]
|
||||
|
Reference in New Issue
Block a user