mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-29 18:55:49 +00:00
Base image to openjdk:19-buster
This commit is contained in:
parent
6d59a2e44d
commit
c6685288e9
1 changed files with 6 additions and 3 deletions
|
@ -1,6 +1,4 @@
|
||||||
# syntax=docker/dockerfile:1
|
FROM openjdk:19-buster
|
||||||
|
|
||||||
FROM openjdk:21-buster
|
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
@ -11,3 +9,8 @@ RUN ./mvnw dependency:resolve
|
||||||
COPY src ./src
|
COPY src ./src
|
||||||
|
|
||||||
CMD ["./mvnw", "spring-boot:run"]
|
CMD ["./mvnw", "spring-boot:run"]
|
||||||
|
|
||||||
|
############################Build the container############################
|
||||||
|
#docker build -t java-dcoker .
|
||||||
|
########To run and delete the container post shutdown######################
|
||||||
|
#docker run --rm -p 8080:8080 java-docker
|
||||||
|
|
Loading…
Reference in a new issue