build jars and compose the docker image tweaks
This commit is contained in:
14
BrickLog-Server/Dockerfile
Normal file
14
BrickLog-Server/Dockerfile
Normal file
@@ -0,0 +1,14 @@
|
||||
# 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"]
|
Reference in New Issue
Block a user