17 lines
379 B
Docker
17 lines
379 B
Docker
|
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build-env
|
||
|
WORKDIR /App
|
||
|
|
||
|
# Copy everything
|
||
|
COPY . ./
|
||
|
# Restore as distinct layers
|
||
|
RUN dotnet restore
|
||
|
# Build and publish a release
|
||
|
RUN dotnet publish -c Release -o out
|
||
|
|
||
|
# Build runtime image
|
||
|
FROM mcr.microsoft.com/dotnet/runtime:7.0
|
||
|
WORKDIR /App
|
||
|
COPY --from=build-env /App/out .
|
||
|
EXPOSE 49204
|
||
|
ENTRYPOINT ["dotnet", "TYTDDownloadWebUI.dll"]
|