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