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