This commit is contained in:
ls
2024-08-10 15:11:32 +08:00
parent d3609c1864
commit 06be487ba6
4 changed files with 105 additions and 4 deletions

22
Dockerfile Normal file
View File

@@ -0,0 +1,22 @@
#FROM bellsoft/liberica-openjdk-debian:17
FROM maven:3.9.8-eclipse-temurin-17 as build
WORKDIR /app
COPY settings.xml /root/.m2/settings.xml
ADD . /app
RUN mvn package -DskipTests=true clean install
FROM bellsoft/liberica-openjdk-debian:17
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
WORKDIR /app
EXPOSE 8080
#ADD ./src/main/resources/jeecg ./config/jeecg
COPY --from=build /app/physical-launcher/target/physical-launcher-3.7.0.jar physical-launcher-3.7.0.jar
CMD sleep 60;java -Djava.security.egd=file:/dev/./urandom -jar physical-launcher-3.7.0.jar --spring.profiles.active=prod