Files
PrintAuftrag-Portfolio/api/Dockerfile
2025-11-08 13:42:43 +01:00

14 lines
346 B
Docker

# Use an official OpenJDK runtime as a parent image
FROM openjdk:21-jdk-slim
# Set the working directory inside the container
WORKDIR /app
# Copy the application's JAR file into the container
COPY target/*.jar app.jar
# Expose the port your Spring Boot application runs on
EXPOSE 8080
# Run the JAR file
ENTRYPOINT ["java", "-jar", "app.jar"]