feature/user-authentication #2
2 changed files with 4 additions and 3 deletions
|
|
@ -9,14 +9,14 @@
|
|||
FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build
|
||||
WORKDIR /src
|
||||
|
||||
# Copy project file and restore dependencies
|
||||
# Copy project file and restore dependencies for Linux-x64
|
||||
COPY ["GermanApp.csproj", "."]
|
||||
RUN dotnet restore "GermanApp.csproj"
|
||||
RUN dotnet restore "GermanApp.csproj" --runtime linux-x64
|
||||
|
||||
# Copy everything else and build
|
||||
COPY . .
|
||||
WORKDIR "/src"
|
||||
RUN dotnet build "GermanApp.csproj" -c Release -o /app/build
|
||||
RUN dotnet build "GermanApp.csproj" -c Release -o /app/build --runtime linux-x64
|
||||
|
||||
# Publish the application
|
||||
RUN dotnet publish "GermanApp.csproj" -c Release -o /app/publish \
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net9.0</TargetFramework>
|
||||
<RuntimeIdentifier>linux-x64</RuntimeIdentifier>
|
||||
<Nullable>enable</Nullable>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
</PropertyGroup>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue