潘志宝
2025-03-23 45ccb96b7a3a9929e8beb6a2c5793eff6170b56d
1
2
3
4
5
6
7
8
9
FROM eclipse-temurin:8-jre
RUN mkdir -p /sda2/iailab/iailab-plat/nacos
WORKDIR /sda2/iailab/iailab-plat/nacos
EXPOSE 8848
ENV TZ=Asia/Shanghai LANG=C.UTF-8 LC_ALL=C.UTF-8 JAVA_OPTS="-Xms512m -Xmx1024m"
## 将后端项目的 Jar 文件,复制到镜像中
COPY ./iailab-nacos.jar nacos-server.jar
 
CMD java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar iailab-nacos.jar