java-tutorials/spring-cloud/spring-cloud-kubernetes/kubernetes-selfhealing/readiness-example/Dockerfile

11 lines
207 B
Docker
Raw Normal View History

FROM openjdk:8-jdk-alpine
# Create app directory
RUN mkdir -p /usr/opt/service
# Copy app
COPY target/*.jar /usr/opt/service/service.jar
EXPOSE 8080
ENTRYPOINT exec java -jar /usr/opt/service/service.jar