Update Dockerfile

This commit is contained in:
Oleksandr Butenko 2021-06-14 21:17:42 +03:00 committed by GitHub
parent 85d6377656
commit 776d936404
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,8 +1,5 @@
# syntax=docker/dockerfile:1 # syntax=docker/dockerfile:1
FROM openjdk:16-alpine3.13 FROM openjdk:16-alpine3.13
WORKDIR /app WORKDIR /app
COPY .mvn/ .mvn COPY target/*.jar .
COPY mvnw pom.xml ./ CMD [ "java", "-jar *.jar" ]
RUN ./mvnw dependency:go-offline
COPY src ./src
CMD ["./mvnw", "spring-boot:run"]