From ebeb39254fea9611627b123aceb9d69012ad9e21 Mon Sep 17 00:00:00 2001 From: "Amir.H Khademi" Date: Thu, 19 Oct 2023 11:47:58 +0330 Subject: [PATCH] edit dockerFile --- Berizco.sln | 7 +++++++ Dockerfile | 4 ++-- NuGet.config | 28 ---------------------------- 3 files changed, 9 insertions(+), 30 deletions(-) delete mode 100644 NuGet.config diff --git a/Berizco.sln b/Berizco.sln index 7d4d4e6..5610a67 100644 --- a/Berizco.sln +++ b/Berizco.sln @@ -17,6 +17,13 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Brizco.Repository", "Berizc EndProject Project("{E53339B2-1760-4266-BCC7-CA923CBCF16C}") = "docker-compose", "docker-compose.dcproj", "{9FEFFA46-5403-42CD-87A4-9B2AC30BD7B6}" EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ConfigFiles", "ConfigFiles", "{B0739DDF-6D6A-4975-9A71-C908B3E16102}" + ProjectSection(SolutionItems) = preProject + .version = .version + Dockerfile = Dockerfile + global.json = global.json + EndProjectSection +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU diff --git a/Dockerfile b/Dockerfile index d8b5929..0421f8c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,9 @@ -FROM registry.vnfco.ir/library/dotnet/aspnet:7.0 AS base +FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS base ENV ASPNETCORE_URLS=http://0.0.0.0:8010 WORKDIR /app EXPOSE 8010 -FROM registry.vnfco.ir/library/dotnet/sdk:7.0 AS build +FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build WORKDIR /src COPY ["Berizco.Api/Brizco.Api.csproj", "Brizco.Api/"] RUN dotnet restore "Brizco.Api/Brizco.Api.csproj" diff --git a/NuGet.config b/NuGet.config deleted file mode 100644 index b727bdf..0000000 --- a/NuGet.config +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file