Files
pmu-bet-engine/Dockerfile
2025-11-19 12:20:37 +00:00

13 lines
444 B
Docker

# Step 1: Use an official OpenJDK base image from Docker Hub
FROM eclipse-temurin:17-jdk
# Step 2: Set the working directory inside the container
WORKDIR /app
# Step 3: Copy the Spring Boot JAR file into the container
COPY build/libs/bet-engine-0.0.1-SNAPSHOT.jar /app/app.jar
# Step 4: Expose the port your application runs on
EXPOSE 8080
# Step 5: Define the command to run your Spring Boot application
CMD ["java", "-jar", "/app/app.jar"]