spring-petclinic/Dockerfile
Jesse Houldsworth 35664db36b new jdk
2025-11-19 15:10:41 -08:00

15 lines
344 B
Docker

# Use an official OpenJDK runtime as a parent image
FROM eclipse-temurin:17-jdk-jammy
# Set the working directory inside the container
WORKDIR /app
# Copy the built JAR file from the target directory
COPY target/spring-petclinic-*.jar app.jar
# Expose the application port
EXPOSE 8080
# Run the application
CMD ["java", "-jar", "app.jar"]