AnalysisSystemForRadionuclide/jeecg-server-cloud/armd-cloud-nacos/Dockerfile

23 lines
617 B
Docker
Raw Normal View History

2024-01-16 16:01:02 +08:00
FROM jdk64:latest
2023-05-06 15:51:29 +08:00
2024-01-16 16:01:02 +08:00
MAINTAINER armd@163.com
2023-05-06 15:51:29 +08:00
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
2024-01-16 16:01:02 +08:00
RUN mkdir -p /armd-cloud-nacos
2023-05-06 15:51:29 +08:00
2024-01-16 16:01:02 +08:00
WORKDIR /armd-cloud-nacos
2023-05-06 15:51:29 +08:00
EXPOSE 8848
2024-01-16 16:01:02 +08:00
ENV DB_URL="jdbc:postgresql://192.168.8.103:5432/nacos"
ENV DB_USER="postgres"
ENV DB_PASSWORD="123456"
ENV DB_PLATFORM="postgresql"
ENV SERVER_PORT="8848"
EXPOSE $SERVER_PORT
2024-01-16 16:01:02 +08:00
ADD armd-cloud-nacos-3.5.1.jar ./
2023-05-06 15:51:29 +08:00
2024-01-16 16:01:02 +08:00
CMD sleep 5;java -DSERVER_PORT=$SERVER_PORT -DDB_URL=$DB_URL -DDB_USER=$DB_USER -DDB_PASSWORD=$DB_PASSWORD -DDB_PLATFORM=$DB_PLATFORM -Dfile.encoding=utf-8 -Djava.security.egd=file:/dev/./urandom -jar armd-cloud-nacos-3.5.1.jar