Dockerfile

1. Java

FROM openjdk:8u302-jdk
ENV TZ=Asia/Shanghai
RUN ln -sf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
VOLUME /tmp
COPY myapp.jar app.jar
ENTRYPOINT java -Duser.timezone=GMT+08 -Dfile.encoding=UTF-8 -Dsun.jnu.encoding=UTF-8 -jar -Xms1024m -Xmx2048m -XX:PermSize=512M -XX:MaxPermSize=512M -XX:NewSize=128m -XX:MaxNewSize=256m -XX:-UseGCOverheadLimit -Djava.security.egd=file:/dev/./urandom /app.jar --spring.profiles.active=prod
Copyright © rootwhois.cn 2021-2022 all right reserved,powered by GitbookFile Modify: 2022-11-26 20:03:31

results matching ""

    No results matching ""