Database node setup + Docker

This commit is contained in:
2024-11-23 19:02:42 +02:00
parent 62c94e40af
commit c932e701a9
6 changed files with 117 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
FROM ubuntu:latest
LABEL authors="lumijiez"
FROM maven:3.9.9-eclipse-temurin-21 AS build
WORKDIR /app
COPY pom.xml .
RUN mvn dependency:go-offline
COPY src /app/src
RUN mvn clean package -DskipTests
FROM openjdk:21
WORKDIR /app
COPY --from=build /app/target/SymphonyDatabaseNode-1.0-SNAPSHOT.jar /app/SymphonyDatabaseNode.jar
EXPOSE 8081
ENTRYPOINT ["java", "-jar", "SymphonyDatabaseNode.jar"]