Dockerfile 311 B

12345678910111213
  1. FROM registry.cn-hangzhou.aliyuncs.com/dockerhub_mirror/java:21-anolis
  2. WORKDIR /lttcai-gateway
  3. ARG JAR_FILE=target/lttcai-gateway.jar
  4. COPY ${JAR_FILE} app.jar
  5. EXPOSE 9999
  6. ENV TZ=Asia/Shanghai JAVA_OPTS="-Xms128m -Xmx256m -Djava.security.egd=file:/dev/./urandom"
  7. CMD sleep 60; java $JAVA_OPTS -jar app.jar