mirror of
https://gitee.com/kennylee/docker.git
synced 2024-11-30 02:48:27 +08:00
19 lines
628 B
Docker
Executable File
19 lines
628 B
Docker
Executable File
FROM registry.cn-hangzhou.aliyuncs.com/kennylee/sshd-tomcat:tomcat8-jdk7-nodejs7
|
|
|
|
ENV LOCAL_REPO_PATH=/var/source/
|
|
|
|
RUN sed -i "s@\/usr\/lib\/jvm\/java-7-oracle@${JAVA_HOME}@" /etc/init.d/tomcat
|
|
RUN sed -i "s@-server -Xms128m -Xmx1024m -XX\:PermSize=64M -XX\:MaxPermSize=192M@${JAVA_OPTS}@" /etc/init.d/tomcat
|
|
|
|
VOLUME $HOME/.gradle/
|
|
VOLUME $LOCAL_REPO_PATH
|
|
VOLUME /opt/tomcat/webapps/
|
|
|
|
RUN cd /root && git clone https://git.oschina.net/kennylee/ci-webhook.git ci-webhook
|
|
RUN cd ci-webhook && cnpm install
|
|
|
|
COPY deploy.sh /deploy.sh
|
|
RUN chmod +x /deploy.sh
|
|
|
|
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/supervisord.conf"]
|