Update docker for Responses

This commit is contained in:
Santhosh S 2023-09-25 23:34:52 -04:00
parent cddbe63464
commit 49d809bbff

View File

@ -10,7 +10,7 @@ COPY ["DamageAssesment.Api.SurveyResponses/DamageAssesment.Api.Responses.csproj"
RUN dotnet restore "DamageAssesment.Api.SurveyResponses/DamageAssesment.Api.Responses.csproj" RUN dotnet restore "DamageAssesment.Api.SurveyResponses/DamageAssesment.Api.Responses.csproj"
COPY . . COPY . .
WORKDIR "/src/DamageAssesment.Api.SurveyResponses" WORKDIR "/src/DamageAssesment.Api.SurveyResponses"
RUN dotnet build "DamageAssesment.Api.SurveyResponses.csproj" -c Release -o /app/build RUN dotnet build "DamageAssesment.Api.Responses.csproj" -c Release -o /app/build
FROM build AS publish FROM build AS publish
RUN dotnet publish "DamageAssesment.Api.Responses.csproj" -c Release -o /app/publish /p:UseAppHost=false RUN dotnet publish "DamageAssesment.Api.Responses.csproj" -c Release -o /app/publish /p:UseAppHost=false