Commit bbd408fb by 折木

添加模块镜像编译文件

parent dc9347c4
FROM registry.cn-shanghai.aliyuncs.com/demo-imges/java-base-image
RUN /bin/sh -c curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
RUN /bin/sh -c yum update -y # buildkit
RUN /bin/sh -c yum groupinstall -y "Development Tools"
COPY jemalloc-5.3.0 /usr/local/jemalloc-5.3.0
RUN /bin/sh -c cd /usr/local/jemalloc-5.3.0/ &&./configure --prefix=/usr/local &&make &&make install
RUN /bin/sh -c cat /etc/ld.so.conf
RUN /bin/sh -c sed -i '/^include \/etc\/ld.so.conf.d\/.*\.conf$/a /usr/local/lib' /etc/ld.so.conf
RUN /bin/sh -c ldconfig
ADD /usr/java/java.tar.gz /usr/local
RUN /bin/sh -c echo $PATH
RUN /bin/sh -c java -version
COPY /monitor_data/docker-images/java-docker/tomcat /usr/local/tomcat
WORKDIR /usr/local/tomcat
FROM registry.cn-shanghai.aliyuncs.com/demo-imges/java-base-image
RUN yum install -y curl
RUN curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
RUN yum update -y
RUN yum groupinstall -y "Development Tools"
RUN yum install gcc make autoconf automake libtool -y
COPY jemalloc-5.3.0 /usr/local/jemalloc-5.3.0
RUN cd /usr/local/jemalloc-5.3.0/ &&./configure --prefix=/usr/local &&make &&make install
RUN cat /etc/ld.so.conf
RUN sed -i '/^include \/etc\/ld.so.conf.d\/.*\.conf$/a /usr/local/lib' /etc/ld.so.conf
RUN ldconfig
ADD java.tar.gz /usr/local
RUN echo $PATH
RUN java -version
COPY tomcat /usr/local/tomcat
WORKDIR /usr/local/tomcat
COPY ./target/gic-qywx-self.war webapps/api-qywx-self.war
RUN /bin/sh -c mkdir -p /var/tmp/nginx/client
RUN /bin/sh -c mkdir -p /opt/settings && chmod -R 777 /opt/settings
RUN /bin/sh -c echo env=PRO > /opt/settings/server.properties
RUN /bin/sh -c chmod +x /usr/local/tomcat/bin/catalina.sh
RUN mkdir -p /var/tmp/nginx/client
RUN mkdir -p /opt/settings && chmod -R 777 /opt/settings
RUN echo env=PRO > /opt/settings/server.properties
RUN chmod +x /usr/local/tomcat/bin/catalina.sh
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment