mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-29 10:55:48 +00:00
first commit adding dockerfile
This commit is contained in:
parent
ca055dbbe1
commit
66e3ab64d0
1 changed files with 14 additions and 0 deletions
14
Dockerfile
Normal file
14
Dockerfile
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
FROM openjdk:21-jdk
|
||||||
|
|
||||||
|
# Set the working directory to /app
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
# Copy the current directory contents into the container at /app
|
||||||
|
COPY . /app
|
||||||
|
|
||||||
|
# Make port 8080 available to the world outside this container
|
||||||
|
EXPOSE 8080
|
||||||
|
|
||||||
|
RUN ./mvnw package
|
||||||
|
|
||||||
|
CMD ["java", "-jar", "target/spring-petclinic-3.0.0-SNAPSHOT.jar"]
|
Loading…
Reference in a new issue