From f7e470011670fd0e70123c2d4f5bb6fe627ae3b4 Mon Sep 17 00:00:00 2001 From: diogo Date: Wed, 29 Sep 2021 14:38:22 -0300 Subject: [PATCH] update dockerfile --- ConversaoPeso.Web/Dockerfile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 ConversaoPeso.Web/Dockerfile diff --git a/ConversaoPeso.Web/Dockerfile b/ConversaoPeso.Web/Dockerfile new file mode 100644 index 0000000..87d80a4 --- /dev/null +++ b/ConversaoPeso.Web/Dockerfile @@ -0,0 +1,15 @@ +FROM mcr.microsoft.com/dotnet/sdk:5.0 as build-app +WORKDIR /app +EXPOSE 80 + +COPY *.csproj ./ +RUN dotnet restore + +COPY . . +RUN dotnet publish -c Release -o out + +FROM mcr.microsoft.com/dotnet/aspnet:5.0 as publish +WORKDIR /app + +COPY --from=build-app /app/out . +ENTRYPOINT ["dotnet", "ConversaoPeso.Web.dll"] \ No newline at end of file