diff --git a/deploy/starter/config/agent-factory-api-event-profile.template.json b/deploy/starter/config/agent-factory-api-event-profile.template.json index 0370c81571..60d0bdd2e1 100644 --- a/deploy/starter/config/agent-factory-api-event-profile.template.json +++ b/deploy/starter/config/agent-factory-api-event-profile.template.json @@ -1 +1 @@ -{\\\"EventProcessingCycleSeconds\\\":60,\\\"Topics\\\":[{\\\"Name\\\":\\\"storage\\\",\\\"SubscriptionPrefix\\\":\\\"storage-agent-factory\\\",\\\"EventTypeProfiles\\\":[{\\\"EventType\\\":\\\"Microsoft.Storage.BlobCreated\\\",\\\"EventSets\\\":[{\\\"Namespace\\\":\\\"ResourceProvider.FoundationaLLM.Agent\\\",\\\"Source\\\":\\\"/subscriptions/${env:AZURE_SUBSCRIPTION_ID}/resourceGroups/rg-${env:AZURE_ENV_NAME}/providers/Microsoft.Storage/storageAccounts/${env:AZURE_STORAGE_ACCOUNT_NAME}\\\",\\\"SubjectPrefix\\\":\\\"/blobServices/default/containers/resource-provider/blobs/FoundationaLLM.Agent\\\"}]}]}]} \ No newline at end of file +{\"EventProcessingCycleSeconds\":60,\"Topics\":[{\"Name\":\"storage\",\"SubscriptionPrefix\":\"storage-agent-factory\",\"EventTypeProfiles\":[{\"EventType\":\"Microsoft.Storage.BlobCreated\",\"EventSets\":[{\"Namespace\":\"ResourceProvider.FoundationaLLM.Agent\",\"Source\":\"/subscriptions/${AZURE_SUBSCRIPTION_ID}/resourceGroups/rg-${AZURE_ENV_NAME}/providers/Microsoft.Storage/storageAccounts/${AZURE_STORAGE_ACCOUNT_NAME}\",\"SubjectPrefix\":\"/blobServices/default/containers/resource-provider/blobs/FoundationaLLM.Agent\"}]}]}]} diff --git a/deploy/starter/config/core-api-event-profile.template.json b/deploy/starter/config/core-api-event-profile.template.json index 2fda8097b5..a92de26cc1 100644 --- a/deploy/starter/config/core-api-event-profile.template.json +++ b/deploy/starter/config/core-api-event-profile.template.json @@ -1 +1 @@ -{\\\"EventProcessingCycleSeconds\\\":60,\\\"Topics\\\":[{\\\"Name\\\":\\\"storage\\\",\\\"SubscriptionPrefix\\\":\\\"storage-core\\\",\\\"EventTypeProfiles\\\":[{\\\"EventType\\\":\\\"Microsoft.Storage.BlobCreated\\\",\\\"EventSets\\\":[{\\\"Namespace\\\":\\\"ResourceProvider.FoundationaLLM.Agent\\\",\\\"Source\\\":\\\"/subscriptions/${env:AZURE_SUBSCRIPTION_ID}/resourceGroups/rg-${env:AZURE_ENV_NAME}/providers/Microsoft.Storage/storageAccounts/${env:AZURE_STORAGE_ACCOUNT_NAME}\\\",\\\"SubjectPrefix\\\":\\\"/blobServices/default/containers/resource-provider/blobs/FoundationaLLM.Agent\\\"}]}]}]} \ No newline at end of file +{\"EventProcessingCycleSeconds\":60,\"Topics\":[{\"Name\":\"storage\",\"SubscriptionPrefix\":\"storage-core\",\"EventTypeProfiles\":[{\"EventType\":\"Microsoft.Storage.BlobCreated\",\"EventSets\":[{\"Namespace\":\"ResourceProvider.FoundationaLLM.Agent\",\"Source\":\"/subscriptions/${AZURE_SUBSCRIPTION_ID}/resourceGroups/rg-${AZURE_ENV_NAME}/providers/Microsoft.Storage/storageAccounts/${AZURE_STORAGE_ACCOUNT_NAME}\",\"SubjectPrefix\":\"/blobServices/default/containers/resource-provider/blobs/FoundationaLLM.Agent\"}]}]}]} diff --git a/deploy/starter/config/management-api-event-profile.json b/deploy/starter/config/management-api-event-profile.json index bf49432112..daef838f01 100644 --- a/deploy/starter/config/management-api-event-profile.json +++ b/deploy/starter/config/management-api-event-profile.json @@ -1 +1 @@ -{\\\"EventProcessingCycleSeconds\\\": 60,\\\"Topics\\\": []} \ No newline at end of file +{\"EventProcessingCycleSeconds\": 60,\"Topics\": []} \ No newline at end of file diff --git a/deploy/starter/config/vectorization-api-event-profile.template.json b/deploy/starter/config/vectorization-api-event-profile.template.json index a957e3a68a..a3bc823ec2 100644 --- a/deploy/starter/config/vectorization-api-event-profile.template.json +++ b/deploy/starter/config/vectorization-api-event-profile.template.json @@ -1 +1 @@ -{\\\"EventProcessingCycleSeconds\\\":60,\\\"Topics\\\":[{\\\"Name\\\":\\\"storage\\\",\\\"SubscriptionPrefix\\\":\\\"storage-vect\\\",\\\"EventTypeProfiles\\\":[{\\\"EventType\\\":\\\"Microsoft.Storage.BlobCreated\\\",\\\"EventSets\\\":[{\\\"Namespace\\\":\\\"ResourceProvider.FoundationaLLM.Vectorization\\\",\\\"Source\\\":\\\"/subscriptions/${env:AZURE_SUBSCRIPTION_ID}/resourceGroups/rg-${env:AZURE_ENV_NAME}/providers/Microsoft.Storage/storageAccounts/${env:AZURE_STORAGE_ACCOUNT_NAME}\\\",\\\"SubjectPrefix\\\":\\\"/blobServices/default/containers/resource-provider/blobs/FoundationaLLM.Vectorization\\\"}]}]},{\\\"Name\\\":\\\"configuration\\\",\\\"SubscriptionPrefix\\\":\\\"config-vect\\\",\\\"EventTypeProfiles\\\":[{\\\"EventType\\\":\\\"Microsoft.AppConfiguration.KeyValueModified\\\",\\\"EventSets\\\":[{\\\"Namespace\\\":\\\"ResourceProvider.FoundationaLLM.Configuration\\\",\\\"Source\\\":\\\"/subscriptions/${env:AZURE_SUBSCRIPTION_ID}/resourceGroups/rg-${env:AZURE_ENV_NAME}/providers/Microsoft.AppConfiguration/configurationStores/${env:AZURE_APP_CONFIG_NAME}\\\"}]}]}]} \ No newline at end of file +{\"EventProcessingCycleSeconds\":60,\"Topics\":[{\"Name\":\"storage\",\"SubscriptionPrefix\":\"storage-vect\",\"EventTypeProfiles\":[{\"EventType\":\"Microsoft.Storage.BlobCreated\",\"EventSets\":[{\"Namespace\":\"ResourceProvider.FoundationaLLM.Vectorization\",\"Source\":\"/subscriptions/${AZURE_SUBSCRIPTION_ID}/resourceGroups/rg-${AZURE_ENV_NAME}/providers/Microsoft.Storage/storageAccounts/${AZURE_STORAGE_ACCOUNT_NAME}\",\"SubjectPrefix\":\"/blobServices/default/containers/resource-provider/blobs/FoundationaLLM.Vectorization\"}]}]},{\"Name\":\"configuration\",\"SubscriptionPrefix\":\"config-vect\",\"EventTypeProfiles\":[{\"EventType\":\"Microsoft.AppConfiguration.KeyValueModified\",\"EventSets\":[{\"Namespace\":\"ResourceProvider.FoundationaLLM.Configuration\",\"Source\":\"/subscriptions/${AZURE_SUBSCRIPTION_ID}/resourceGroups/rg-${AZURE_ENV_NAME}/providers/Microsoft.AppConfiguration/configurationStores/${AZURE_APP_CONFIG_NAME}\"}]}]}]} diff --git a/deploy/starter/config/vectorization-worker-event-profile.template.json b/deploy/starter/config/vectorization-worker-event-profile.template.json index 18304a7b89..4be0a5c2bf 100644 --- a/deploy/starter/config/vectorization-worker-event-profile.template.json +++ b/deploy/starter/config/vectorization-worker-event-profile.template.json @@ -1 +1 @@ -{\\\"EventProcessingCycleSeconds\\\":60,\\\"Topics\\\":[{\\\"Name\\\":\\\"storage\\\",\\\"SubscriptionPrefix\\\":\\\"storage-vectw\\\",\\\"EventTypeProfiles\\\":[{\\\"EventType\\\":\\\"Microsoft.Storage.BlobCreated\\\",\\\"EventSets\\\":[{\\\"Namespace\\\":\\\"ResourceProvider.FoundationaLLM.Vectorization\\\",\\\"Source\\\":\\\"/subscriptions/${env:AZURE_SUBSCRIPTION_ID}/resourceGroups/rg-${env:AZURE_ENV_NAME}/providers/Microsoft.Storage/storageAccounts/${env:AZURE_STORAGE_ACCOUNT_NAME}\\\",\\\"SubjectPrefix\\\":\\\"/blobServices/default/containers/resource-provider/blobs/FoundationaLLM.Vectorization\\\"}]}]},{\\\"Name\\\":\\\"configuration\\\",\\\"SubscriptionPrefix\\\":\\\"config-vectw\\\",\\\"EventTypeProfiles\\\":[{\\\"EventType\\\":\\\"Microsoft.AppConfiguration.KeyValueModified\\\",\\\"EventSets\\\":[{\\\"Namespace\\\":\\\"ResourceProvider.FoundationaLLM.Configuration\\\",\\\"Source\\\":\\\"/subscriptions/${env:AZURE_SUBSCRIPTION_ID}/resourceGroups/rg-${env:AZURE_ENV_NAME}/providers/Microsoft.AppConfiguration/configurationStores/${env:AZURE_APP_CONFIG_NAME}\\\"}]}]}]} \ No newline at end of file +{\"EventProcessingCycleSeconds\":60,\"Topics\":[{\"Name\":\"storage\",\"SubscriptionPrefix\":\"storage-vectw\",\"EventTypeProfiles\":[{\"EventType\":\"Microsoft.Storage.BlobCreated\",\"EventSets\":[{\"Namespace\":\"ResourceProvider.FoundationaLLM.Vectorization\",\"Source\":\"/subscriptions/${AZURE_SUBSCRIPTION_ID}/resourceGroups/rg-${AZURE_ENV_NAME}/providers/Microsoft.Storage/storageAccounts/${AZURE_STORAGE_ACCOUNT_NAME}\",\"SubjectPrefix\":\"/blobServices/default/containers/resource-provider/blobs/FoundationaLLM.Vectorization\"}]}]},{\"Name\":\"configuration\",\"SubscriptionPrefix\":\"config-vectw\",\"EventTypeProfiles\":[{\"EventType\":\"Microsoft.AppConfiguration.KeyValueModified\",\"EventSets\":[{\"Namespace\":\"ResourceProvider.FoundationaLLM.Configuration\",\"Source\":\"/subscriptions/${AZURE_SUBSCRIPTION_ID}/resourceGroups/rg-${AZURE_ENV_NAME}/providers/Microsoft.AppConfiguration/configurationStores/${AZURE_APP_CONFIG_NAME}\"}]}]}]} diff --git a/deploy/starter/config/vectorization.json b/deploy/starter/config/vectorization.json index f3a83ddbb1..dac722816d 100644 --- a/deploy/starter/config/vectorization.json +++ b/deploy/starter/config/vectorization.json @@ -1 +1 @@ -{\\\"RequestManagers\\\":[{\\\"RequestSourceName\\\":\\\"extract\\\",\\\"MaxHandlerInstances\\\":1},{\\\"RequestSourceName\\\":\\\"partition\\\",\\\"MaxHandlerInstances\\\":1},{\\\"RequestSourceName\\\":\\\"embed\\\",\\\"MaxHandlerInstances\\\":1},{\\\"RequestSourceName\\\":\\\"index\\\",\\\"MaxHandlerInstances\\\":1}],\\\"RequestSources\\\":[{\\\"Name\\\":\\\"extract\\\",\\\"ConnectionConfigurationName\\\":\\\"Extract:ConnectionString\\\",\\\"VisibilityTimeoutSeconds\\\":600},{\\\"Name\\\":\\\"partition\\\",\\\"ConnectionConfigurationName\\\":\\\"Partition:ConnectionString\\\",\\\"VisibilityTimeoutSeconds\\\":600},{\\\"Name\\\":\\\"embed\\\",\\\"ConnectionConfigurationName\\\":\\\"Embed:ConnectionString\\\",\\\"VisibilityTimeoutSeconds\\\":600},{\\\"Name\\\":\\\"index\\\",\\\"ConnectionConfigurationName\\\":\\\"Index:ConnectionString\\\",\\\"VisibilityTimeoutSeconds\\\":600}],\\\"QueuingEngine\\\":\\\"AzureStorageQueue\\\"} \ No newline at end of file +{\"RequestManagers\":[{\"RequestSourceName\":\"extract\",\"MaxHandlerInstances\":1},{\"RequestSourceName\":\"partition\",\"MaxHandlerInstances\":1},{\"RequestSourceName\":\"embed\",\"MaxHandlerInstances\":1},{\"RequestSourceName\":\"index\",\"MaxHandlerInstances\":1}],\"RequestSources\":[{\"Name\":\"extract\",\"ConnectionConfigurationName\":\"Extract:ConnectionString\",\"VisibilityTimeoutSeconds\":600},{\"Name\":\"partition\",\"ConnectionConfigurationName\":\"Partition:ConnectionString\",\"VisibilityTimeoutSeconds\":600},{\"Name\":\"embed\",\"ConnectionConfigurationName\":\"Embed:ConnectionString\",\"VisibilityTimeoutSeconds\":600},{\"Name\":\"index\",\"ConnectionConfigurationName\":\"Index:ConnectionString\",\"VisibilityTimeoutSeconds\":600}],\"QueuingEngine\":\"AzureStorageQueue\"} \ No newline at end of file diff --git a/src/dotnet/AgentFactoryAPI/Dockerfile b/src/dotnet/AgentFactoryAPI/Dockerfile index dc27da76cc..53d03be38f 100644 --- a/src/dotnet/AgentFactoryAPI/Dockerfile +++ b/src/dotnet/AgentFactoryAPI/Dockerfile @@ -1,34 +1,34 @@ -#See https://aka.ms/customizecontainer to learn how to customize your debug container and how Visual Studio uses this Dockerfile to build your images for faster debugging. -FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base -ARG FOUNDATIONALLM_VERSION -WORKDIR /app -EXPOSE 80 - -ENV ASPNETCORE_URLS=http://+:80 -ENV ASPNETCORE_ENVIRONMENT=Development -ENV FOUNDATIONALLM_VERSION=${FOUNDATIONALLM_VERSION:-0.0.0} - -FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build -WORKDIR /src -COPY . . - -RUN dotnet restore "dotnet/Common/Common.csproj" -RUN dotnet build "dotnet/Common/Common.csproj" -c Release -o /app/build - -RUN dotnet restore "dotnet/AgentFactory/AgentFactory.csproj" -RUN dotnet build "dotnet/AgentFactory/AgentFactory.csproj" -c Release -o /app/build - -RUN dotnet restore "dotnet/AgentFactoryAPI/AgentFactoryAPI.csproj" -RUN dotnet build "dotnet/AgentFactoryAPI/AgentFactoryAPI.csproj" -c Release -o /app/build - -FROM build AS publish -RUN dotnet publish "dotnet/Common/Common.csproj" -c Release -o /app/publish /p:UseAppHost=false -RUN dotnet publish "dotnet/AgentFactory/AgentFactory.csproj" -c Release -o /app/publish /p:UseAppHost=false -RUN dotnet publish "dotnet/AgentFactoryAPI/AgentFactoryAPI.csproj" -c Release -o /app/publish /p:UseAppHost=false - -FROM base AS final -WORKDIR /app -COPY --from=publish /app/publish . -ENTRYPOINT ["dotnet", "FoundationaLLM.AgentFactory.API.dll"] -LABEL org.opencontainers.image.source=https://github.com/solliancenet/foundationallm -LABEL ai.foundationallm.version=${FOUNDATIONALLM_VERSION:-0.0.0} +#See https://aka.ms/customizecontainer to learn how to customize your debug container and how Visual Studio uses this Dockerfile to build your images for faster debugging. +FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base +ARG FOUNDATIONALLM_VERSION +WORKDIR /app +EXPOSE 80 + +ENV ASPNETCORE_URLS=http://+:80 +ENV ASPNETCORE_ENVIRONMENT=Production +ENV FOUNDATIONALLM_VERSION=${FOUNDATIONALLM_VERSION:-0.0.0} + +FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build +WORKDIR /src +COPY . . + +RUN dotnet restore "dotnet/Common/Common.csproj" +RUN dotnet build "dotnet/Common/Common.csproj" -c Release -o /app/build + +RUN dotnet restore "dotnet/AgentFactory/AgentFactory.csproj" +RUN dotnet build "dotnet/AgentFactory/AgentFactory.csproj" -c Release -o /app/build + +RUN dotnet restore "dotnet/AgentFactoryAPI/AgentFactoryAPI.csproj" +RUN dotnet build "dotnet/AgentFactoryAPI/AgentFactoryAPI.csproj" -c Release -o /app/build + +FROM build AS publish +RUN dotnet publish "dotnet/Common/Common.csproj" -c Release -o /app/publish /p:UseAppHost=false +RUN dotnet publish "dotnet/AgentFactory/AgentFactory.csproj" -c Release -o /app/publish /p:UseAppHost=false +RUN dotnet publish "dotnet/AgentFactoryAPI/AgentFactoryAPI.csproj" -c Release -o /app/publish /p:UseAppHost=false + +FROM base AS final +WORKDIR /app +COPY --from=publish /app/publish . +ENTRYPOINT ["dotnet", "FoundationaLLM.AgentFactory.API.dll"] +LABEL org.opencontainers.image.source=https://github.com/solliancenet/foundationallm +LABEL ai.foundationallm.version=${FOUNDATIONALLM_VERSION:-0.0.0} diff --git a/src/dotnet/CoreAPI/Dockerfile b/src/dotnet/CoreAPI/Dockerfile index 329c951275..eda003454f 100644 --- a/src/dotnet/CoreAPI/Dockerfile +++ b/src/dotnet/CoreAPI/Dockerfile @@ -1,33 +1,33 @@ -FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base -ARG FOUNDATIONALLM_VERSION -WORKDIR /app -EXPOSE 80 - -ENV ASPNETCORE_URLS=http://+:80 -ENV ASPNETCORE_ENVIRONMENT=Development -ENV FOUNDATIONALLM_VERSION=${FOUNDATIONALLM_VERSION:-0.0.0} - -FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build -WORKDIR /src -COPY . . - -RUN dotnet restore "dotnet/Common/Common.csproj" -RUN dotnet build "dotnet/Common/Common.csproj" -c Release -o /app/build - -RUN dotnet restore "dotnet/Core/Core.csproj" -RUN dotnet build "dotnet/Core/Core.csproj" -c Release -o /app/build - -RUN dotnet restore "dotnet/CoreAPI/CoreAPI.csproj" -RUN dotnet build "dotnet/CoreAPI/CoreAPI.csproj" -c Release -o /app/build - -FROM build AS publish -RUN dotnet publish "dotnet/Common/Common.csproj" -c Release -o /app/publish /p:UseAppHost=false -RUN dotnet publish "dotnet/Core/Core.csproj" -c Release -o /app/publish /p:UseAppHost=false -RUN dotnet publish "dotnet/CoreAPI/CoreAPI.csproj" -c Release -o /app/publish /p:UseAppHost=false - -FROM base AS final -WORKDIR /app -COPY --from=publish /app/publish . -ENTRYPOINT ["dotnet", "FoundationaLLM.Core.API.dll"] -LABEL org.opencontainers.image.source=https://github.com/solliancenet/foundationallm -LABEL ai.foundationallm.version=${FOUNDATIONALLM_VERSION:-0.0.0} +FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base +ARG FOUNDATIONALLM_VERSION +WORKDIR /app +EXPOSE 80 + +ENV ASPNETCORE_URLS=http://+:80 +ENV ASPNETCORE_ENVIRONMENT=Production +ENV FOUNDATIONALLM_VERSION=${FOUNDATIONALLM_VERSION:-0.0.0} + +FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build +WORKDIR /src +COPY . . + +RUN dotnet restore "dotnet/Common/Common.csproj" +RUN dotnet build "dotnet/Common/Common.csproj" -c Release -o /app/build + +RUN dotnet restore "dotnet/Core/Core.csproj" +RUN dotnet build "dotnet/Core/Core.csproj" -c Release -o /app/build + +RUN dotnet restore "dotnet/CoreAPI/CoreAPI.csproj" +RUN dotnet build "dotnet/CoreAPI/CoreAPI.csproj" -c Release -o /app/build + +FROM build AS publish +RUN dotnet publish "dotnet/Common/Common.csproj" -c Release -o /app/publish /p:UseAppHost=false +RUN dotnet publish "dotnet/Core/Core.csproj" -c Release -o /app/publish /p:UseAppHost=false +RUN dotnet publish "dotnet/CoreAPI/CoreAPI.csproj" -c Release -o /app/publish /p:UseAppHost=false + +FROM base AS final +WORKDIR /app +COPY --from=publish /app/publish . +ENTRYPOINT ["dotnet", "FoundationaLLM.Core.API.dll"] +LABEL org.opencontainers.image.source=https://github.com/solliancenet/foundationallm +LABEL ai.foundationallm.version=${FOUNDATIONALLM_VERSION:-0.0.0} diff --git a/src/dotnet/GatekeeperAPI/Dockerfile b/src/dotnet/GatekeeperAPI/Dockerfile index 73d02c9a29..6ca3283c83 100644 --- a/src/dotnet/GatekeeperAPI/Dockerfile +++ b/src/dotnet/GatekeeperAPI/Dockerfile @@ -1,34 +1,34 @@ -FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base -ARG FOUNDATIONALLM_VERSION -WORKDIR /app -EXPOSE 80 - -ENV ASPNETCORE_URLS=http://+:80 -ENV ASPNETCORE_ENVIRONMENT=Development -ENV FOUNDATIONALLM_VERSION=${FOUNDATIONALLM_VERSION:-0.0.0} - -FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build -WORKDIR /src -COPY . . - -RUN dotnet restore "dotnet/Common/Common.csproj" -RUN dotnet build "dotnet/Common/Common.csproj" -c Release -o /app/build - -RUN dotnet restore "dotnet/Gatekeeper/Gatekeeper.csproj" -RUN dotnet build "dotnet/Gatekeeper/Gatekeeper.csproj" -c Release -o /app/build - -RUN dotnet restore "dotnet/GatekeeperAPI/GatekeeperAPI.csproj" -RUN dotnet build "dotnet/GatekeeperAPI/GatekeeperAPI.csproj" -c Release -o /app/build - -FROM build AS publish -RUN dotnet publish "dotnet/Common/Common.csproj" -c Release -o /app/publish /p:UseAppHost=false -RUN dotnet publish "dotnet/Gatekeeper/Gatekeeper.csproj" -c Release -o /app/publish /p:UseAppHost=false -RUN dotnet publish "dotnet/GatekeeperAPI/GatekeeperAPI.csproj" -c Release -o /app/publish /p:UseAppHost=false - -FROM base AS final -WORKDIR /app -COPY --from=publish /app/publish . -ENTRYPOINT ["dotnet", "FoundationaLLM.Gatekeeper.API.dll"] -LABEL org.opencontainers.image.source=https://github.com/solliancenet/foundationallm -LABEL foundationallm.version=$FOUNDATIONALLM_VERSION -LABEL ai.foundationallm.version=${FOUNDATIONALLM_VERSION:-0.0.0} +FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base +ARG FOUNDATIONALLM_VERSION +WORKDIR /app +EXPOSE 80 + +ENV ASPNETCORE_URLS=http://+:80 +ENV ASPNETCORE_ENVIRONMENT=Production +ENV FOUNDATIONALLM_VERSION=${FOUNDATIONALLM_VERSION:-0.0.0} + +FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build +WORKDIR /src +COPY . . + +RUN dotnet restore "dotnet/Common/Common.csproj" +RUN dotnet build "dotnet/Common/Common.csproj" -c Release -o /app/build + +RUN dotnet restore "dotnet/Gatekeeper/Gatekeeper.csproj" +RUN dotnet build "dotnet/Gatekeeper/Gatekeeper.csproj" -c Release -o /app/build + +RUN dotnet restore "dotnet/GatekeeperAPI/GatekeeperAPI.csproj" +RUN dotnet build "dotnet/GatekeeperAPI/GatekeeperAPI.csproj" -c Release -o /app/build + +FROM build AS publish +RUN dotnet publish "dotnet/Common/Common.csproj" -c Release -o /app/publish /p:UseAppHost=false +RUN dotnet publish "dotnet/Gatekeeper/Gatekeeper.csproj" -c Release -o /app/publish /p:UseAppHost=false +RUN dotnet publish "dotnet/GatekeeperAPI/GatekeeperAPI.csproj" -c Release -o /app/publish /p:UseAppHost=false + +FROM base AS final +WORKDIR /app +COPY --from=publish /app/publish . +ENTRYPOINT ["dotnet", "FoundationaLLM.Gatekeeper.API.dll"] +LABEL org.opencontainers.image.source=https://github.com/solliancenet/foundationallm +LABEL foundationallm.version=$FOUNDATIONALLM_VERSION +LABEL ai.foundationallm.version=${FOUNDATIONALLM_VERSION:-0.0.0} diff --git a/src/dotnet/ManagementAPI/Dockerfile b/src/dotnet/ManagementAPI/Dockerfile index acad07b4e9..cb2b149bc3 100644 --- a/src/dotnet/ManagementAPI/Dockerfile +++ b/src/dotnet/ManagementAPI/Dockerfile @@ -1,33 +1,33 @@ -FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base -ARG FOUNDATIONALLM_VERSION -WORKDIR /app -EXPOSE 80 - -ENV ASPNETCORE_URLS=http://+:80 -ENV ASPNETCORE_ENVIRONMENT=Development -ENV FOUNDATIONALLM_VERSION=${FOUNDATIONALLM_VERSION:-0.0.0} - -FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build -WORKDIR /src -COPY . . - -RUN dotnet restore "dotnet/Common/Common.csproj" -RUN dotnet build "dotnet/Common/Common.csproj" -c Release -o /app/build - -RUN dotnet restore "dotnet/Management/Management.csproj" -RUN dotnet build "dotnet/Management/Management.csproj" -c Release -o /app/build - -RUN dotnet restore "dotnet/ManagementAPI/ManagementAPI.csproj" -RUN dotnet build "dotnet/ManagementAPI/ManagementAPI.csproj" -c Release -o /app/build - -FROM build AS publish -RUN dotnet publish "dotnet/Common/Common.csproj" -c Release -o /app/publish /p:UseAppHost=false -RUN dotnet publish "dotnet/Management/Management.csproj" -c Release -o /app/publish /p:UseAppHost=false -RUN dotnet publish "dotnet/ManagementAPI/ManagementAPI.csproj" -c Release -o /app/publish /p:UseAppHost=false - -FROM base AS final -WORKDIR /app -COPY --from=publish /app/publish . -ENTRYPOINT ["dotnet", "FoundationaLLM.Management.API.dll"] -LABEL org.opencontainers.image.source=https://github.com/solliancenet/foundationallm -LABEL foundationallm.version=${FOUNDATIONALLM_VERSION:-0.0.0} +FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base +ARG FOUNDATIONALLM_VERSION +WORKDIR /app +EXPOSE 80 + +ENV ASPNETCORE_URLS=http://+:80 +ENV ASPNETCORE_ENVIRONMENT=Production +ENV FOUNDATIONALLM_VERSION=${FOUNDATIONALLM_VERSION:-0.0.0} + +FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build +WORKDIR /src +COPY . . + +RUN dotnet restore "dotnet/Common/Common.csproj" +RUN dotnet build "dotnet/Common/Common.csproj" -c Release -o /app/build + +RUN dotnet restore "dotnet/Management/Management.csproj" +RUN dotnet build "dotnet/Management/Management.csproj" -c Release -o /app/build + +RUN dotnet restore "dotnet/ManagementAPI/ManagementAPI.csproj" +RUN dotnet build "dotnet/ManagementAPI/ManagementAPI.csproj" -c Release -o /app/build + +FROM build AS publish +RUN dotnet publish "dotnet/Common/Common.csproj" -c Release -o /app/publish /p:UseAppHost=false +RUN dotnet publish "dotnet/Management/Management.csproj" -c Release -o /app/publish /p:UseAppHost=false +RUN dotnet publish "dotnet/ManagementAPI/ManagementAPI.csproj" -c Release -o /app/publish /p:UseAppHost=false + +FROM base AS final +WORKDIR /app +COPY --from=publish /app/publish . +ENTRYPOINT ["dotnet", "FoundationaLLM.Management.API.dll"] +LABEL org.opencontainers.image.source=https://github.com/solliancenet/foundationallm +LABEL foundationallm.version=${FOUNDATIONALLM_VERSION:-0.0.0} diff --git a/src/dotnet/SemanticKernelAPI/Dockerfile b/src/dotnet/SemanticKernelAPI/Dockerfile index cca248b1a8..ee4427b836 100644 --- a/src/dotnet/SemanticKernelAPI/Dockerfile +++ b/src/dotnet/SemanticKernelAPI/Dockerfile @@ -4,7 +4,7 @@ WORKDIR /app EXPOSE 80 ENV ASPNETCORE_URLS=http://+:80 -ENV ASPNETCORE_ENVIRONMENT=Development +ENV ASPNETCORE_ENVIRONMENT=Production ENV FOUNDATIONALLM_VERSION=${FOUNDATIONALLM_VERSION:-0.0.0} FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build diff --git a/src/dotnet/VectorizationAPI/Dockerfile b/src/dotnet/VectorizationAPI/Dockerfile index e73db5aaef..da64629c29 100644 --- a/src/dotnet/VectorizationAPI/Dockerfile +++ b/src/dotnet/VectorizationAPI/Dockerfile @@ -1,33 +1,33 @@ -FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base -ARG FOUNDATIONALLM_VERSION -WORKDIR /app -EXPOSE 80 - -ENV ASPNETCORE_URLS=http://+:80 -ENV ASPNETCORE_ENVIRONMENT=Release -ENV FOUNDATIONALLM_VERSION=${FOUNDATIONALLM_VERSION:-0.0.0} - -FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build -WORKDIR /src -COPY . . - -RUN dotnet restore "dotnet/Common/Common.csproj" -RUN dotnet build "dotnet/Common/Common.csproj" -c Release -o /app/build - -RUN dotnet restore "dotnet/Vectorization/Vectorization.csproj" -RUN dotnet build "dotnet/Vectorization/Vectorization.csproj" -c Release -o /app/build - -RUN dotnet restore "dotnet/VectorizationAPI/VectorizationAPI.csproj" -RUN dotnet build "dotnet/VectorizationAPI/VectorizationAPI.csproj" -c Release -o /app/build - -FROM build AS publish -RUN dotnet publish "dotnet/Common/Common.csproj" -c Release -o /app/publish /p:UseAppHost=false -RUN dotnet publish "dotnet/Vectorization/Vectorization.csproj" -c Release -o /app/publish /p:UseAppHost=false -RUN dotnet publish "dotnet/VectorizationAPI/VectorizationAPI.csproj" -c Release -o /app/publish /p:UseAppHost=false - -FROM base AS final -WORKDIR /app -COPY --from=publish /app/publish . -ENTRYPOINT ["dotnet", "FoundationaLLM.Vectorization.API.dll"] -LABEL org.opencontainers.image.source=https://github.com/solliancenet/foundationallm -LABEL ai.foundationallm.version=${FOUNDATIONALLM_VERSION:-0.0.0} +FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base +ARG FOUNDATIONALLM_VERSION +WORKDIR /app +EXPOSE 80 + +ENV ASPNETCORE_URLS=http://+:80 +ENV ASPNETCORE_ENVIRONMENT=Production +ENV FOUNDATIONALLM_VERSION=${FOUNDATIONALLM_VERSION:-0.0.0} + +FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build +WORKDIR /src +COPY . . + +RUN dotnet restore "dotnet/Common/Common.csproj" +RUN dotnet build "dotnet/Common/Common.csproj" -c Release -o /app/build + +RUN dotnet restore "dotnet/Vectorization/Vectorization.csproj" +RUN dotnet build "dotnet/Vectorization/Vectorization.csproj" -c Release -o /app/build + +RUN dotnet restore "dotnet/VectorizationAPI/VectorizationAPI.csproj" +RUN dotnet build "dotnet/VectorizationAPI/VectorizationAPI.csproj" -c Release -o /app/build + +FROM build AS publish +RUN dotnet publish "dotnet/Common/Common.csproj" -c Release -o /app/publish /p:UseAppHost=false +RUN dotnet publish "dotnet/Vectorization/Vectorization.csproj" -c Release -o /app/publish /p:UseAppHost=false +RUN dotnet publish "dotnet/VectorizationAPI/VectorizationAPI.csproj" -c Release -o /app/publish /p:UseAppHost=false + +FROM base AS final +WORKDIR /app +COPY --from=publish /app/publish . +ENTRYPOINT ["dotnet", "FoundationaLLM.Vectorization.API.dll"] +LABEL org.opencontainers.image.source=https://github.com/solliancenet/foundationallm +LABEL ai.foundationallm.version=${FOUNDATIONALLM_VERSION:-0.0.0} diff --git a/src/dotnet/VectorizationWorker/Dockerfile b/src/dotnet/VectorizationWorker/Dockerfile index 052a3350d8..fbe1997314 100644 --- a/src/dotnet/VectorizationWorker/Dockerfile +++ b/src/dotnet/VectorizationWorker/Dockerfile @@ -1,33 +1,33 @@ -FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base -ARG FOUNDATIONALLM_VERSION -WORKDIR /app -EXPOSE 80 - -ENV ASPNETCORE_URLS=http://+:80 -ENV ASPNETCORE_ENVIRONMENT=Release -ENV FOUNDATIONALLM_VERSION=${FOUNDATIONALLM_VERSION:-0.0.0} - -FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build -WORKDIR /src -COPY . . - -RUN dotnet restore "dotnet/Common/Common.csproj" -RUN dotnet build "dotnet/Common/Common.csproj" -c Release -o /app/build - -RUN dotnet restore "dotnet/Vectorization/Vectorization.csproj" -RUN dotnet build "dotnet/Vectorization/Vectorization.csproj" -c Release -o /app/build - -RUN dotnet restore "dotnet/VectorizationWorker/VectorizationWorker.csproj" -RUN dotnet build "dotnet/VectorizationWorker/VectorizationWorker.csproj" -c Release -o /app/build - -FROM build AS publish -RUN dotnet publish "dotnet/Common/Common.csproj" -c Release -o /app/publish /p:UseAppHost=false -RUN dotnet publish "dotnet/Vectorization/Vectorization.csproj" -c Release -o /app/publish /p:UseAppHost=false -RUN dotnet publish "dotnet/VectorizationWorker/VectorizationWorker.csproj" -c Release -o /app/publish /p:UseAppHost=false - -FROM base AS final -WORKDIR /app -COPY --from=publish /app/publish . -ENTRYPOINT ["dotnet", "FoundationaLLM.Vectorization.Worker.dll"] -LABEL org.opencontainers.image.source=https://github.com/solliancenet/foundationallm -LABEL foundationallm.version=${FOUNDATIONALLM_VERSION:-0.0.0} +FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base +ARG FOUNDATIONALLM_VERSION +WORKDIR /app +EXPOSE 80 + +ENV ASPNETCORE_URLS=http://+:80 +ENV ASPNETCORE_ENVIRONMENT=Production +ENV FOUNDATIONALLM_VERSION=${FOUNDATIONALLM_VERSION:-0.0.0} + +FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build +WORKDIR /src +COPY . . + +RUN dotnet restore "dotnet/Common/Common.csproj" +RUN dotnet build "dotnet/Common/Common.csproj" -c Release -o /app/build + +RUN dotnet restore "dotnet/Vectorization/Vectorization.csproj" +RUN dotnet build "dotnet/Vectorization/Vectorization.csproj" -c Release -o /app/build + +RUN dotnet restore "dotnet/VectorizationWorker/VectorizationWorker.csproj" +RUN dotnet build "dotnet/VectorizationWorker/VectorizationWorker.csproj" -c Release -o /app/build + +FROM build AS publish +RUN dotnet publish "dotnet/Common/Common.csproj" -c Release -o /app/publish /p:UseAppHost=false +RUN dotnet publish "dotnet/Vectorization/Vectorization.csproj" -c Release -o /app/publish /p:UseAppHost=false +RUN dotnet publish "dotnet/VectorizationWorker/VectorizationWorker.csproj" -c Release -o /app/publish /p:UseAppHost=false + +FROM base AS final +WORKDIR /app +COPY --from=publish /app/publish . +ENTRYPOINT ["dotnet", "FoundationaLLM.Vectorization.Worker.dll"] +LABEL org.opencontainers.image.source=https://github.com/solliancenet/foundationallm +LABEL foundationallm.version=${FOUNDATIONALLM_VERSION:-0.0.0}