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 /src/chromecastserver
# build 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
COPY --from=build-env /app/out .
CMD ["dotnet", "ChromecastServer.dll"]