Complete enough for initial deploy on my server
This commit is contained in:
parent
bd9b2849b0
commit
4cf99bcf38
|
@ -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" ]
|
Loading…
Reference in New Issue