update
This commit is contained in:
19
Dockerfile
19
Dockerfile
@@ -1,12 +1,12 @@
|
||||
#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 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
|
||||
|
||||
|
||||
|
||||
@@ -17,7 +17,6 @@ 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
|
||||
COPY ./physical-launcher/target/physical-launcher-3.7.0.jar /app/
|
||||
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
|
||||
Reference in New Issue
Block a user