update Dockerfile

This commit is contained in:
Mateleo 2024-11-22 00:30:57 +01:00
parent a47db464f8
commit 2b81012c4a

View File

@ -9,7 +9,7 @@ RUN dotnet restore "src/DiIiS-NA/Blizzless.csproj"
# Copy the rest of the project files and build the application
COPY ["src/", "src/"]
WORKDIR "/app/src/DiIiS-NA"
RUN dotnet build "Blizzless.csproj" -c Release --runtime linux-x64 -o /app/publish
RUN dotnet build "Blizzless.csproj" -c Release --runtime linux-x64 --self-contained true -o /app/publish
# Use the official .NET runtime image to run the application
FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS runtime