mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-27 09:25:49 +00:00
Update Dockerfile
This commit is contained in:
parent
85d6377656
commit
776d936404
1 changed files with 2 additions and 5 deletions
|
@ -1,8 +1,5 @@
|
|||
# syntax=docker/dockerfile:1
|
||||
FROM openjdk:16-alpine3.13
|
||||
WORKDIR /app
|
||||
COPY .mvn/ .mvn
|
||||
COPY mvnw pom.xml ./
|
||||
RUN ./mvnw dependency:go-offline
|
||||
COPY src ./src
|
||||
CMD ["./mvnw", "spring-boot:run"]
|
||||
COPY target/*.jar .
|
||||
CMD [ "java", "-jar *.jar" ]
|
||||
|
|
Loading…
Reference in a new issue