Commit 61ca21c3 by 折木

好办自建服务增加duubo服务

parent ceb67378
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
ENV export LD_PRELOAD=/usr/local/lib/libjemalloc.so
ENV export MALLOC_CONF=narenas:1,lg_tcache_max:13,dirty_decay_ms:1000,muzzy_decay_ms:0
RUN ldconfig
ADD java.tar.gz /usr/local
RUN echo $PATH
RUN java -version
COPY ./target/gic-qywx-self.jar /usr/local/app/gic-qywx-self.jar
# 创建必要的目录结构和文件权限
RUN mkdir -p /var/tmp/nginx/client && \
mkdir -p /opt/settings && \
chmod -R 777 /opt/settings && \
echo "env=PRO" > /opt/settings/server.properties
EXPOSE 8990
# 设置容器启动命令,运行 Jar 文件
ENTRYPOINT ["java", "-jar", "/usr/local/app/gic-qywx-self.jar"]
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