update
This commit is contained in:
@@ -22,19 +22,19 @@ COPY ["./src/Managing.Infrastructure.Exchanges/Managing.Infrastructure.Exchanges
|
|||||||
COPY ["./src/Managing.Infrastructure.Databases/Managing.Infrastructure.Databases.csproj", "Managing.Infrastructure.Databases/"]
|
COPY ["./src/Managing.Infrastructure.Databases/Managing.Infrastructure.Databases.csproj", "Managing.Infrastructure.Databases/"]
|
||||||
|
|
||||||
# Restore dependencies for all projects
|
# Restore dependencies for all projects
|
||||||
RUN dotnet restore "./src/Managing.Api/Managing.Api.csproj"
|
RUN dotnet restore "./Managing.Api/Managing.Api.csproj"
|
||||||
|
|
||||||
# Copy everything else and build
|
# Copy everything else and build
|
||||||
COPY . .
|
# COPY . .
|
||||||
WORKDIR "/src/Managing.Api"
|
# WORKDIR "/src/Managing.Api"
|
||||||
RUN dotnet build "Managing.Api.csproj" -c Release -o /app/build
|
# RUN dotnet build "Managing.Api.csproj" -c Release -o /app/build
|
||||||
|
|
||||||
FROM build AS publish
|
# FROM build AS publish
|
||||||
RUN dotnet publish "Managing.Api.csproj" -c Release -o /app/publish
|
# RUN dotnet publish "Managing.Api.csproj" -c Release -o /app/publish
|
||||||
|
|
||||||
FROM base AS final
|
# FROM base AS final
|
||||||
WORKDIR /app
|
# WORKDIR /app
|
||||||
COPY --from=publish /app/publish .
|
# COPY --from=publish /app/publish .
|
||||||
#COPY Managing.Api/managing_cert.pfx .
|
#COPY Managing.Api/managing_cert.pfx .
|
||||||
# Managing.Api/appsettings.Lowpro.json .
|
# Managing.Api/appsettings.Lowpro.json .
|
||||||
ENTRYPOINT ["dotnet", "Managing.Api.dll"]
|
# ENTRYPOINT ["dotnet", "Managing.Api.dll"]
|
||||||
Reference in New Issue
Block a user