From c767578e76a18edba0ede255f9b22a1a1d27e472 Mon Sep 17 00:00:00 2001 From: shunjid Date: Sun, 12 Jan 2020 00:48:19 +0600 Subject: [PATCH] fullscreen, dockerfile update --- Dockerfile | 13 ++------ Views/Home/Index.cshtml | 4 +-- wwwroot/app/src/scripts/app.js | 49 +++++++++++++++++++++++++++++- wwwroot/app/src/scripts/app.min.js | 2 +- 4 files changed, 54 insertions(+), 14 deletions(-) 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 @@