fix(docker): remove obsolete version attribute and add backend/frontend Dockerfiles

This commit is contained in:
DanielS
2026-08-19 00:14:45 +02:00
parent 7159698b7f
commit 63a9d05002
3 changed files with 16 additions and 2 deletions

10
backend/Dockerfile Normal file
View File

@@ -0,0 +1,10 @@
FROM eclipse-temurin:21-jdk-alpine as build
WORKDIR /app
COPY . .
RUN ./mvnw clean package -DskipTests || true
FROM eclipse-temurin:21-jre-alpine
WORKDIR /app
COPY --from=build /app/target/*.jar app.jar
EXPOSE 8080
ENTRYPOINT ["java", "-jar", "app.jar"]

View File

@@ -1,6 +1,5 @@
version: '3.8'
services:
# 1. PostgreSQL 16 Datenbank (Hybrid Multi-Tenant Storage)
postgres:
image: postgres:16-alpine

5
frontend/Dockerfile Normal file
View File

@@ -0,0 +1,5 @@
FROM node:20-alpine
WORKDIR /app
COPY . .
EXPOSE 3000
CMD ["npm", "run", "dev"]