init 1.0.0

This commit is contained in:
2026-06-19 00:42:00 +02:00
commit 5ca960746b
67 changed files with 3261 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS base
WORKDIR /app
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
WORKDIR /src
COPY ["LehrerApp.Api/LehrerApp.Api.csproj", "LehrerApp.Api/"]
COPY ["LehrerApp.Sync/LehrerApp.Sync.csproj", "LehrerApp.Sync/"]
COPY ["LehrerApp.Core/LehrerApp.Core.csproj", "LehrerApp.Core/"]
COPY ["LehrerApp.Data/LehrerApp.Data.csproj", "LehrerApp.Data/"]
COPY ["Directory.Build.props", "."]
COPY ["Directory.Packages.props", "."]
RUN dotnet restore "LehrerApp.Api/LehrerApp.Api.csproj"
COPY . .
RUN dotnet publish "LehrerApp.Api/LehrerApp.Api.csproj" -c Release -o /app/publish
FROM base AS final
COPY --from=build /app/publish .
RUN mkdir -p /app/data
ENTRYPOINT ["dotnet", "LehrerApp.Api.dll"]
+13
View File
@@ -0,0 +1,13 @@
services:
api:
build:
context: ..
dockerfile: docker/Dockerfile.api
ports:
- "5000:5000"
volumes:
- ./data:/app/data
environment:
- JWT_SECRET=${JWT_SECRET}
- ASPNETCORE_ENVIRONMENT=Production
restart: unless-stopped