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

11 lines
207 B
Docker
Raw Normal View History

2019-10-30 18:09:06 -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