前端项目结构
This commit is contained in:
13
urbanLifelineServ/gateway/Dockerfile.dev
Normal file
13
urbanLifelineServ/gateway/Dockerfile.dev
Normal file
@@ -0,0 +1,13 @@
|
||||
FROM maven:3.9-eclipse-temurin-21-alpine
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# 复制 pom.xml 和源代码
|
||||
COPY pom.xml ./
|
||||
COPY src ./src
|
||||
|
||||
# 暴露端口
|
||||
EXPOSE 8080
|
||||
|
||||
# 使用 spring-boot-devtools 支持热重载
|
||||
CMD ["mvn", "spring-boot:run", "-Dspring-boot.run.jvmArguments=-Dspring.devtools.restart.enabled=true"]
|
||||
Reference in New Issue
Block a user