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

11 lines
207 B
Docker
Raw Normal View History

2019-10-26 17:37:05 -04:00
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