diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..3205214 --- /dev/null +++ b/Dockerfile @@ -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" ] \ No newline at end of file