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