update
This commit is contained in:
@@ -20,17 +20,19 @@ COPY ["./src/Managing.Application.Workers/Managing.Application.Workers.csproj",
|
|||||||
COPY ["./src/Managing.Infrastructure.Messengers/Managing.Infrastructure.Messengers.csproj", "Managing.Infrastructure.Messengers/"]
|
COPY ["./src/Managing.Infrastructure.Messengers/Managing.Infrastructure.Messengers.csproj", "Managing.Infrastructure.Messengers/"]
|
||||||
COPY ["./src/Managing.Infrastructure.Exchanges/Managing.Infrastructure.Exchanges.csproj", "Managing.Infrastructure.Exchanges/"]
|
COPY ["./src/Managing.Infrastructure.Exchanges/Managing.Infrastructure.Exchanges.csproj", "Managing.Infrastructure.Exchanges/"]
|
||||||
COPY ["./src/Managing.Infrastructure.Database/Managing.Infrastructure.Databases.csproj", "Managing.Infrastructure.Database/"]
|
COPY ["./src/Managing.Infrastructure.Database/Managing.Infrastructure.Databases.csproj", "Managing.Infrastructure.Database/"]
|
||||||
RUN dotnet restore "./src/Managing.Api/Managing.Api.csproj"
|
RUN dotnet restore "./Managing.Api/Managing.Api.csproj"
|
||||||
COPY . .
|
|
||||||
WORKDIR "/src/Managing.Api"
|
|
||||||
RUN dotnet build "Managing.Api.csproj" -c Release -o /app/build
|
|
||||||
|
|
||||||
FROM build AS publish
|
|
||||||
RUN dotnet publish "Managing.Api.csproj" -c Release -o /app/publish
|
|
||||||
|
|
||||||
FROM base AS final
|
# COPY . .
|
||||||
WORKDIR /app
|
# WORKDIR "/src/Managing.Api"
|
||||||
COPY --from=publish /app/publish .
|
# RUN dotnet build "Managing.Api.csproj" -c Release -o /app/build
|
||||||
COPY Managing.Api/managing_cert.pfx .
|
|
||||||
COPY Managing.Api/appsettings.Lowpro.json .
|
# FROM build AS publish
|
||||||
ENTRYPOINT ["dotnet", "Managing.Api.dll"]
|
# RUN dotnet publish "Managing.Api.csproj" -c Release -o /app/publish
|
||||||
|
|
||||||
|
# FROM base AS final
|
||||||
|
# WORKDIR /app
|
||||||
|
# COPY --from=publish /app/publish .
|
||||||
|
# COPY Managing.Api/managing_cert.pfx .
|
||||||
|
# COPY Managing.Api/appsettings.Lowpro.json .
|
||||||
|
# ENTRYPOINT ["dotnet", "Managing.Api.dll"]
|
||||||
|
|||||||
Reference in New Issue
Block a user