build: add comprehensive docker files for frontend & backend

Update docker-compose.yml to include new Dockerfiles
This commit is contained in:
2026-02-22 21:38:43 +00:00
parent ab943be44e
commit fe097c8ee7
3 changed files with 57 additions and 3 deletions

21
src/main/Dockerfile Normal file
View File

@@ -0,0 +1,21 @@
# Build stage
FROM maven:3.9.6-eclipse-temurin-21 AS builder
WORKDIR /app
COPY pom.xml .
COPY src ./src
RUN mvn clean package -DskipTests
# Run stage
FROM eclipse-temurin:21-jdk
# dependencies
RUN apt-get update && \
apt-get install -y ffmpeg && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY --from=builder /app/target/*.jar app.jar
EXPOSE 8080
ENTRYPOINT ["java", "-jar", "app.jar"]