spring-petclinic/Dockerfile

16 lines
344 B
Text
Raw Normal View History

# Use an official OpenJDK runtime as a parent image
2025-11-19 15:10:41 -08:00
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"]