Dockerfile 291 B

1234567
  1. # https://hub.docker.com/_/eclipse-temurin/tags
  2. FROM eclipse-temurin:17-jre
  3. COPY ./target/*.jar ./app.jar
  4. COPY entrypoint.sh /
  5. RUN chmod +x ./entrypoint.sh && \
  6. ln -snf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo Asia/Shanghai > /etc/timezone
  7. ENTRYPOINT ["./entrypoint.sh"]