Skip to content

Commit 805dac6

Browse files
committed
Add Azure deployment with private endpoints and ACI backend
- Add Dockerfile for containerized backend deployment - Add frontend-server with Express proxy for API calls to ACI - Fix agent-framework version constraint in requirements.txt - Fix TypeScript compilation error in frontend API - Update main.bicep infrastructure
1 parent 1fe0a0f commit 805dac6

12 files changed

Lines changed: 1340 additions & 5 deletions

File tree

Dockerfile

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
FROM python:3.12-slim
2+
3+
WORKDIR /app
4+
5+
# Install system dependencies
6+
RUN apt-get update && apt-get install -y \
7+
gcc \
8+
&& rm -rf /var/lib/apt/lists/*
9+
10+
# Copy requirements first for better caching
11+
COPY content-gen/src/requirements.txt .
12+
RUN pip install --no-cache-dir -r requirements.txt
13+
14+
# Copy backend code
15+
COPY content-gen/src/app.py .
16+
COPY content-gen/src/hypercorn.conf.py .
17+
COPY content-gen/src/backend/ ./backend/
18+
19+
# Expose port
20+
EXPOSE 8000
21+
22+
# Run with hypercorn
23+
CMD ["hypercorn", "app:app", "--bind", "0.0.0.0:8000"]

content-gen/infra/main.bicep

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,9 +188,9 @@ var useExistingAiFoundryAiProject = !empty(azureExistingAIProjectResourceId)
188188
var aiFoundryAiServicesResourceGroupName = useExistingAiFoundryAiProject
189189
? split(azureExistingAIProjectResourceId, '/')[4]
190190
: 'rg-${solutionSuffix}'
191-
var aiFoundryAiServicesSubscriptionId = useExistingAiFoundryAiProject
192-
? split(azureExistingAIProjectResourceId, '/')[2]
193-
: subscription().id
191+
// var aiFoundryAiServicesSubscriptionId = useExistingAiFoundryAiProject
192+
// ? split(azureExistingAIProjectResourceId, '/')[2]
193+
// : subscription().id
194194
var aiFoundryAiServicesResourceName = useExistingAiFoundryAiProject
195195
? split(azureExistingAIProjectResourceId, '/')[8]
196196
: 'aif-${solutionSuffix}'
1.85 MB
Binary file not shown.

0 commit comments

Comments
 (0)