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

11 lines
207 B
Docker

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