Skip to content

Commit

Permalink
Merge pull request #663 from solliancenet/mg-0.4.0-pr-4
Browse files Browse the repository at this point in the history
RELEASE 0.4.0: Config and Dockerfile fixes
  • Loading branch information
ciprianjichici authored Feb 23, 2024
2 parents 27a5ce5 + 0a4a5e6 commit 4204f74
Show file tree
Hide file tree
Showing 13 changed files with 207 additions and 207 deletions.
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\"}]}]}]}
2 changes: 1 addition & 1 deletion deploy/starter/config/core-api-event-profile.template.json
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\"}]}]}]}
2 changes: 1 addition & 1 deletion deploy/starter/config/management-api-event-profile.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{\\\"EventProcessingCycleSeconds\\\": 60,\\\"Topics\\\": []}
{\"EventProcessingCycleSeconds\": 60,\"Topics\": []}
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}\"}]}]}]}
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}\"}]}]}]}
2 changes: 1 addition & 1 deletion deploy/starter/config/vectorization.json
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\"}
68 changes: 34 additions & 34 deletions src/dotnet/AgentFactoryAPI/Dockerfile
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}
66 changes: 33 additions & 33 deletions src/dotnet/CoreAPI/Dockerfile
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}
68 changes: 34 additions & 34 deletions src/dotnet/GatekeeperAPI/Dockerfile
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}
66 changes: 33 additions & 33 deletions src/dotnet/ManagementAPI/Dockerfile
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}
2 changes: 1 addition & 1 deletion src/dotnet/SemanticKernelAPI/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading

0 comments on commit 4204f74

Please sign in to comment.