Dockerfile 311 B

12345678910111213
  1. FROM registry.cn-hangzhou.aliyuncs.com/dockerhub_mirror/java:21-anolis
  2. WORKDIR /lttcai-codegen
  3. ARG JAR_FILE=target/lttcai-codegen.jar
  4. COPY ${JAR_FILE} app.jar
  5. EXPOSE 5002
  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