Dockerfile 356 B

123456789101112131415161718
  1. FROM openjdk:8-jdk-alpine
  2. LABEL authors="Jack"
  3. # 创建目标目录
  4. ARG JAR_FILE=target/wk_gateway-0.0.1-SNAPSHOT.jar
  5. COPY ${JAR_FILE} app.jar
  6. # 复制代码
  7. # 编译项目
  8. #RUN mvn clean package -DskipTests
  9. #RUN unzip gateway.zip && \
  10. # cd gateway && sh 72crm.sh start\
  11. # 暴露微服务的端口
  12. EXPOSE 8443
  13. ENTRYPOINT ["java","-jar","/app.jar"]