-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #663 from solliancenet/mg-0.4.0-pr-4
RELEASE 0.4.0: Config and Dockerfile fixes
- Loading branch information
Showing
13 changed files
with
207 additions
and
207 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
deploy/starter/config/agent-factory-api-event-profile.template.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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\\\"}]}]}]} | ||
{\"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\"}]}]}]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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\\\"}]}]}]} | ||
{\"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\"}]}]}]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{\\\"EventProcessingCycleSeconds\\\": 60,\\\"Topics\\\": []} | ||
{\"EventProcessingCycleSeconds\": 60,\"Topics\": []} |
2 changes: 1 addition & 1 deletion
2
deploy/starter/config/vectorization-api-event-profile.template.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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}\\\"}]}]}]} | ||
{\"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}\"}]}]}]} |
2 changes: 1 addition & 1 deletion
2
deploy/starter/config/vectorization-worker-event-profile.template.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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}\\\"}]}]}]} | ||
{\"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}\"}]}]}]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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\\\"} | ||
{\"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\"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.