docker/finebi/Dockerfile

30 lines
839 B
Docker
Raw Normal View History

2021-03-17 16:14:23 +08:00
FROM registry.cn-hangzhou.aliyuncs.com/kennylee/tomcat:tomcat8-jdk8
MAINTAINER kennylee <kennylee26@gmail.com>
RUN \
apt-get update && \
apt-get -y upgrade && \
apt-get install -y lsb-core iproute2 && \
rm -rf /var/lib/apt/lists/*
ENV CATALINA_HOME /opt/tomcat
2021-03-26 16:37:39 +08:00
ENV EXTAR_JAR_DIR /libs
2021-03-17 16:14:23 +08:00
WORKDIR ${CATALINA_HOME}
ENV JAVA_OPTS="-Djava.security.egd=file:///dev/urandom -server -Xms128m -Xmx1532m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/var/findbi/finebi_heapdump"
RUN mkdir -p /var/findbi/finebi_heapdump
# 拷贝进去就行了。由于fine的数据是在webroot目录以下所以使用脚本实现解压不能解压好运行。
COPY app/webroot.zip /tmp/
COPY run.sh /run.sh
RUN chmod +x /*.sh
2021-03-26 16:37:39 +08:00
RUN mkdir -p ${EXTAR_JAR_DIR}
COPY ./libs/*.jar ${EXTAR_JAR_DIR}
2021-03-17 16:14:23 +08:00
VOLUME ${CATALINA_HOME}/webapps/
CMD ["/run.sh"]