feat:修改dockerFile和compose

master
汤全昆 2025-09-08 10:14:42 +08:00
parent 3c8d1b833b
commit 13dff08c82
2 changed files with 4 additions and 2 deletions

View File

@ -1,13 +1,13 @@
# 使用官方OpenJDK作为基础镜像
FROM openjdk:8-jdk
RUN apt-get update && apt-get install -y sudo systemd
# RUN apt-get update && apt-get install -y sudo systemd
# 设置工作目录
WORKDIR /app
# 复制项目的jar文件到容器中
COPY target/*.jar app.jar
COPY target/nex-be-1.0.0.jar app.jar
# 暴露应用端口
EXPOSE 8113

View File

@ -6,8 +6,10 @@ services:
ports:
- "8113:8113"
- "50051:50051"
- "8115:8115"
volumes:
- /var/lib/vdi/:/var/lib/vdi/
- /vms/tool/iso/:/vms/tool/iso/
environment:
- SPRING_PROFILES_ACTIVE=prod
restart: always