AnalysisSystemForRadionuclide/jeecg-server-cloud/armd-spectrum-analysis-start/Dockerfile
2024-01-16 16:01:02 +08:00

27 lines
705 B
Docker

FROM armd-jdk:latest
MAINTAINER armd@163.com
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
# 将共享库复制到容器中
COPY --from=armd-jdk /usr/local/jdk/lib/ /usr/local/jdk/lib/
RUN mkdir -p /armd-spectrum-analysis
WORKDIR /armd-spectrum-analysis
EXPOSE 7007
ADD armd-spectrum-analysis-start-3.5.1.jar ./
# 将所有配置文件复制到armd-spectrum-analysis同级目录并解压
COPY setup.tar ./
RUN ls ./
RUN tar -C ./ -xvf ./setup.tar && \
rm ./setup.tar
# 设置LD_LIBRARY_PATH环境变量
ENV LD_LIBRARY_PATH /usr/local/jdk/lib
CMD sleep 1;java -Xms512m -Xmx1g -Dfile.encoding=utf-8 -Djava.security.egd=file:/dev/./urandom -jar armd-spectrum-analysis-start-3.5.1.jar