Dockerfile 429 B

1234567891011
  1. FROM harbor.cloud.prolog.org/base-solution/jar:v2
  2. ENV LANG=zh_CN.UTF-8
  3. ENV JAVA_OPTS="-XX:MetaspaceSize=56m -XX:MaxMetaspaceSize=128m -Xms128m -Xmx512m -Xmn110m -Xss256k -XX:SurvivorRatio=8 -Djava.security.egd=file:/dev/./urandom -Duser.timezone=GMT+08"
  4. RUN mkdir /usr/local/apps
  5. RUN mkdir /usr/local/logs
  6. COPY ./*/target/*.jar /usr/local/apps/app.jar
  7. WORKDIR /usr/local/apps
  8. CMD java ${JAVA_OPTS} -jar /usr/local/apps/app.jar