Dockerfile 275 B

123456
  1. FROM openjdk:alpine
  2. RUN echo "https://mirror.tuna.tsinghua.edu.cn/alpine/v3.4/main/" > /etc/apk/repositories
  3. EXPOSE 8081
  4. ADD target/mooctest-user-server.jar /root
  5. WORKDIR /root
  6. ENTRYPOINT ["java", "-jar", "-Djava.security.egd=file:/dev/./urandom", "mooctest-user-server.jar"]