From 5fcc4afcd11e1814e294ba8ccbc0abd084c6dcfe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=A4felfinger?= Date: Thu, 6 Feb 2020 23:38:57 +0100 Subject: [PATCH] updates the Dockerfile to build in aspnet core 3.1 --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1055eef..e4e43b2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM microsoft/dotnet:sdk AS build-env +FROM mcr.microsoft.com/dotnet/core/sdk:3.1 AS build WORKDIR /app # Copy everything else and build @@ -7,12 +7,12 @@ RUN dotnet restore Tv7Playlist.sln RUN dotnet publish -c Release -o out Tv7Playlist.sln # Build runtime image -FROM microsoft/dotnet:aspnetcore-runtime +FROM mcr.microsoft.com/dotnet/core/aspnet:3.1 WORKDIR /app RUN mkdir /data -COPY --from=build-env /app/Tv7Playlist/out . +COPY --from=build /app/out . ENV ASPNETCORE_URLS=http://+:80 EXPOSE 80