inital commite
This commit is contained in:
11
Dockerfile
Executable file
11
Dockerfile
Executable file
@@ -0,0 +1,11 @@
|
||||
# Use the official OpenJDK base image
|
||||
FROM openjdk:21-jdk-slim
|
||||
|
||||
# Set the working directory in the container
|
||||
WORKDIR /app
|
||||
|
||||
# Copy the JAR file into the container
|
||||
COPY target/blog-0.0.1.jar /app/app.jar
|
||||
|
||||
# Specify the command to run the JAR file
|
||||
ENTRYPOINT ["java", "-jar", "app.jar"]
|
Reference in New Issue
Block a user