Update Dockerfile

This commit is contained in:
prasannakumar 2024-06-25 15:45:14 +05:30 committed by GitHub
parent 61f520b8cb
commit abc1dd2523
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -5,11 +5,11 @@ FROM openjdk:17-jdk-alpine
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
# 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"]