blog/Dockerfile

12 lines
284 B
Docker
Raw Permalink Normal View History

2025-01-27 22:06:07 +05:30
# 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"]