Complete enough for initial deploy on my server

This commit is contained in:
Mike Nolan 2023-01-21 02:35:21 -06:00
parent bd9b2849b0
commit 4cf99bcf38
1 changed files with 14 additions and 0 deletions

14
Dockerfile Normal file
View File

@ -0,0 +1,14 @@
FROM mcr.microsoft.com/dotnet/sdk:6.0-focal AS build
WORKDIR /source
COPY . .
RUN dotnet restore "./Tesses.Backup.ServerConsole/Tesses.Backup.ServerConsole.csproj" --disable-parallel
RUN dotnet publish "./Tesses.Backup.ServerConsole/Tesses.Backup.ServerConsole.csproj" -c release -o /app --no-restore
FROM mcr.microsoft.com/dotnet/runtime:6.0-focal
WORKDIR /app
COPY --from=build /app ./
COPY --from=build /source/Tesses.Backup.ServerConsole/wwwroot /wwwroot/
WORKDIR /
EXPOSE 42990
ENTRYPOINT [ "dotnet", "/app/Tesses.Backup.ServerConsole.dll" ]