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