FROM openjdk:17-oracle
LABEL authors="Lost"
RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone
RUN mkdir -p /root/Cpop-Oam/
ADD ./target/Cpop-Oam-Web.jar /root/Cpop-Oam/Cpop-Oam-Web.jar
ENTRYPOINT ["sh", "-c", "java -Xms256m -Xmx512m  -jar /root/Cpop-Oam/Cpop-Oam-Web.jar --spring.profiles.active=test,pay"]