14 lines
548 B
Docker
14 lines
548 B
Docker
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" ] |