DockerfileTest 356 B

123456789101112
  1. FROM frolvlad/alpine-java:jdk8-slim
  2. ENV LANG en_US.utf8
  3. ADD target/vend-api.jar /app.jar
  4. EXPOSE 8802
  5. RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
  6. RUN echo 'Asia/Shanghai' >/etc/timezone
  7. # 运行jar包
  8. ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-Dspring.profiles.active=test","-Dfile.encoding=UTF-8","-jar","/app.jar"]