feature/user-authentication #2
2 changed files with 5 additions and 3 deletions
|
|
@ -1,6 +1,7 @@
|
||||||
# GermanApp Backend Dockerfile
|
# GermanApp Backend Dockerfile
|
||||||
# .NET 9.0 Web API Application
|
# .NET 9.0 Web API Application
|
||||||
# Multi-stage build for production optimization
|
# Multi-stage build for production optimization
|
||||||
|
# Build context: GermanApp directory
|
||||||
|
|
||||||
# ============================================
|
# ============================================
|
||||||
# Build Stage
|
# Build Stage
|
||||||
|
|
@ -9,12 +10,12 @@ FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build
|
||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
|
|
||||||
# Copy project file and restore dependencies
|
# Copy project file and restore dependencies
|
||||||
COPY ["GermanApp/GermanApp.csproj", "GermanApp/"]
|
COPY ["GermanApp.csproj", "."]
|
||||||
RUN dotnet restore "GermanApp/GermanApp.csproj"
|
RUN dotnet restore "GermanApp.csproj"
|
||||||
|
|
||||||
# Copy everything else and build
|
# Copy everything else and build
|
||||||
COPY . .
|
COPY . .
|
||||||
WORKDIR "/src/GermanApp"
|
WORKDIR "/src"
|
||||||
RUN dotnet build "GermanApp.csproj" -c Release -o /app/build
|
RUN dotnet build "GermanApp.csproj" -c Release -o /app/build
|
||||||
|
|
||||||
# Publish the application
|
# Publish the application
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
# GermanApp Frontend Dockerfile
|
# GermanApp Frontend Dockerfile
|
||||||
# React 19 + TypeScript + Vite Application
|
# React 19 + TypeScript + Vite Application
|
||||||
# Multi-stage build for production optimization
|
# Multi-stage build for production optimization
|
||||||
|
# Build context: german-app-frontend directory
|
||||||
|
|
||||||
# ============================================
|
# ============================================
|
||||||
# Build Stage
|
# Build Stage
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue