Update Dockerfile

This commit is contained in:
Oleksandr Butenko 2021-06-13 18:43:31 +03:00 committed by GitHub
parent d054832152
commit ee57b54fa1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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