initial
This commit is contained in:
13
Dockerfile
Normal file
13
Dockerfile
Normal file
@@ -0,0 +1,13 @@
|
||||
# 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"]
|
||||
Reference in New Issue
Block a user