forked from jfclere/tomcat-kubernetes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path1
20 lines (20 loc) · 713 Bytes
/
1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM openjdk:8-jre-alpine
LABEL Description="Tomcat image to test tomcat-in-the-cloud. standalone tomcat version"
VOLUME /tmp
USER root
ARG registry_id
ENV OPENSHIFT_KUBE_PING_NAMESPACE $registry_id \
JAVA_OPTS=""
ADD target/dependency/tomcat.zip apache-tomcat.zip
RUN unzip apache-tomcat.zip \
&& rm apache-tomcat.zip \
&& mv apache-tomcat* apache-tomcat
ADD openjson-1.0.10.jar catalina.sh /apache-tomcat/bin/
RUN chmod 777 /apache-tomcat/logs \
&& chmod 777 /apache-tomcat/webapps \
&& chmod 777 /apache-tomcat/work \
&& chmod 777 /apache-tomcat/temp \
&& sh -c 'chmod a+x bin/*.sh'
COPY server.xml logging.properties /apache-tomcat/conf/
WORKDIR /apache-tomcat
ENTRYPOINT [ "sh", "-c", "bin/startup.sh" ]