master
Logan 2024-06-12 17:50:08 +08:00
parent 5c92034f94
commit f673f736ff
1 changed files with 2 additions and 2 deletions

View File

@ -3,8 +3,8 @@
FROM openjdk:8-jdk-alpine
WORKDIR /data
COPY ./target/*.jar /data/app.jar # 复制jar到镜像
EXPOSE 8080 # 声明端口
COPY ./target/*.jar /data/app.jar
EXPOSE 8080
ENV JAVA_OPTS=""
ENTRYPOINT ["java", "-jar", "/data/app.jar"]