You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

18 lines
510 B

# set up dotnet build container
FROM ahendrix/dotnet-sdk-plus:latest AS build-env
# download app source
RUN git clone https://github.com/athendrix/chromecastserver /src/chromecastserver
# build app
WORKDIR /app
RUN cp /src/chromecastserver/*.csproj ./
RUN dotnet restore
RUN cp -r /src/chromecastserver/* ./
RUN dotnet publish -c Release -o out
# set up the final container
FROM mcr.microsoft.com/dotnet/aspnet:5.0-alpine
WORKDIR /app
COPY --from=build-env /app/out .
CMD ["dotnet", "ChromecastServer.dll"]