feature/user-authentication #2
1 changed files with 5 additions and 6 deletions
|
|
@ -9,22 +9,21 @@
|
|||
FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build
|
||||
WORKDIR /src
|
||||
|
||||
# Copy project file and restore dependencies for Linux
|
||||
# Copy project file and restore dependencies
|
||||
COPY ["GermanApp.csproj", "."]
|
||||
RUN dotnet restore "GermanApp.csproj" --runtime linux-x64
|
||||
RUN dotnet restore "GermanApp.csproj"
|
||||
|
||||
# Copy everything else and build
|
||||
COPY . .
|
||||
WORKDIR "/src"
|
||||
RUN dotnet build "GermanApp.csproj" -c Release --runtime linux-x64 -o /app/build
|
||||
RUN dotnet build "GermanApp.csproj" -c Release -o /app/build
|
||||
|
||||
# Publish the application for Linux
|
||||
# Publish the application
|
||||
RUN dotnet publish "GermanApp.csproj" -c Release -o /app/publish \
|
||||
--no-restore \
|
||||
--runtime linux-x64 \
|
||||
-p:PublishReadyToRun=true \
|
||||
-p:PublishSingleFile=false \
|
||||
-p:PublishTrimmed=true
|
||||
-p:PublishTrimmed=false
|
||||
|
||||
# ============================================
|
||||
# Publish Stage
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue