Dockerfile 305 B

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