From f4188b4269678279e9622f9e8c2b9e2d8a2798d2 Mon Sep 17 00:00:00 2001 From: Serghei Cebotari Date: Wed, 11 Oct 2023 22:34:42 +0300 Subject: Move dockerfile --- Dockerfile | 13 +++++++++++++ RhSolutions.Api/Dockerfile | 13 ------------- RhSolutions.Api/nuget.config | 6 ------ nuget.config | 6 ++++++ 4 files changed, 19 insertions(+), 19 deletions(-) create mode 100644 Dockerfile delete mode 100644 RhSolutions.Api/Dockerfile delete mode 100644 RhSolutions.Api/nuget.config create mode 100644 nuget.config diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..93139c8 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build +WORKDIR /app + +COPY . ./ +RUN dotnet restore +RUN dotnet publish -c Release -o out + +FROM mcr.microsoft.com/dotnet/aspnet:6.0 +EXPOSE 5000 +WORKDIR /app +COPY --from=build /app/out . +ENV ASPNETCORE_ENVIRONMENT Production +ENTRYPOINT [ "dotnet", "RhSolutions.Api.dll", "--urls=http://0.0.0.0:5000" ] \ No newline at end of file diff --git a/RhSolutions.Api/Dockerfile b/RhSolutions.Api/Dockerfile deleted file mode 100644 index 93139c8..0000000 --- a/RhSolutions.Api/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build -WORKDIR /app - -COPY . ./ -RUN dotnet restore -RUN dotnet publish -c Release -o out - -FROM mcr.microsoft.com/dotnet/aspnet:6.0 -EXPOSE 5000 -WORKDIR /app -COPY --from=build /app/out . -ENV ASPNETCORE_ENVIRONMENT Production -ENTRYPOINT [ "dotnet", "RhSolutions.Api.dll", "--urls=http://0.0.0.0:5000" ] \ No newline at end of file diff --git a/RhSolutions.Api/nuget.config b/RhSolutions.Api/nuget.config deleted file mode 100644 index c58c656..0000000 --- a/RhSolutions.Api/nuget.config +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/nuget.config b/nuget.config new file mode 100644 index 0000000..c58c656 --- /dev/null +++ b/nuget.config @@ -0,0 +1,6 @@ + + + + + + -- cgit v1.2.3