mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-20 14:55:50 +00:00
Update Dockerfile
This commit is contained in:
parent
f6cc4088b0
commit
8307f0d9db
1 changed files with 5 additions and 1 deletions
|
@ -1,10 +1,14 @@
|
|||
# Use an OpenJDK base image
|
||||
FROM openjdk:17-jdk-alpine
|
||||
|
||||
# Setting the working directory in the container
|
||||
WORKDIR /app/petclinic
|
||||
|
||||
# Copy the JAR file from the host machine to the container
|
||||
COPY target/spring-petclinic-3.3.0-SNAPSHOT.jar .
|
||||
|
||||
# Expose the port your application runs on
|
||||
EXPOSE 8888
|
||||
|
||||
|
||||
# Set the entry point to run the JAR file
|
||||
ENTRYPOINT ["java", "-jar", "spring-petclinic-3.3.0-SNAPSHOT.jar"]
|
||||
|
|
Loading…
Reference in a new issue