Dockerfile
335 Bytes
FROM openjdk:11-jre-slim as builder
LABEL author="yuluo" \
email="yuluo829@aliyun.com"
ENV TZ=Asia/Shanghai
RUN echo -e "${TZ}" > /etc/timezone && ln -sf /usr/share/zoneinfo/${TZ} /etc/localtime
ADD ./project-order/target/project-order-*.jar /app.jar
RUN sh -c 'touch /app.jar'
EXPOSE 8013
ENTRYPOINT ["java", "-jar","/app.jar"]