FROM openjdk:8-jre-slim
COPY ./target/cockpit-service-1.0.jar /app.jar
ENV JAVA_OPTS=""
ENV SPRING_OPTS=""
ENTRYPOINT ["sh", "-c", "java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -jar /app.jar $SPRING_OPTS"]
EXPOSE 8080
docker build -t ky-java:v1.0 .
docker images
docker run -d --name name -p 9000:9000 版本