diff --git a/Dockerfile b/Dockerfile index c3bd495..e62d3ee 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,5 @@ -FROM mcr.microsoft.com/dotnet/core/sdk:3.1 AS build -COPY . /app +FROM mcr.microsoft.com/dotnet/core/sdk:3.1 AS base WORKDIR /app +COPY . . -RUN dotnet restore -RUN dotnet build - -EXPOSE 5000/tcp -ENV ASPNETCORE_URLS http://*:5000 -ENV ASPNETCORE_ENVIRONMENT docker - -ENTRYPOINT [ "dotnet", "watch", "run", "--no-restore", "--urls", "http://0.0.0.0:5000" ] \ No newline at end of file +CMD ASPNETCORE_URLS=http://*:$PORT dotnet routine-explorer.dll diff --git a/Views/Home/Index.cshtml b/Views/Home/Index.cshtml index 5040085..1689c1a 100644 --- a/Views/Home/Index.cshtml +++ b/Views/Home/Index.cshtml @@ -67,11 +67,11 @@