15 lines
332 B
Docker
15 lines
332 B
Docker
# Use a base image that includes JDK
|
|
FROM openjdk:21-jdk-slim
|
|
|
|
# Set the working directory
|
|
WORKDIR /app
|
|
|
|
# Copy the built JAR file into the container
|
|
COPY target/BrickLog-Server-0.1-SNAPSHOT.jar app.jar
|
|
|
|
# Expose the port your application runs on
|
|
EXPOSE 8080
|
|
|
|
# Command to run the application
|
|
ENTRYPOINT ["java", "-jar", "app.jar"]
|