Dockerfile 373 B

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