File tree Expand file tree Collapse file tree 1 file changed +47
-0
lines changed
Expand file tree Collapse file tree 1 file changed +47
-0
lines changed Original file line number Diff line number Diff line change 1+ FROM python:3.13-slim
2+
3+ WORKDIR /app
4+
5+ # Install system dependencies
6+ RUN apt-get update && apt-get install -y \
7+ curl \
8+ openssl \
9+ bash \
10+ ca-certificates \
11+ git \
12+ jq \
13+ wget \
14+ tar \
15+ unzip \
16+ apt-transport-https \
17+ gnupg \
18+ lsb-release \
19+ krb5-user \
20+ libkrb5-dev \
21+ gcc \
22+ python3-dev \
23+ && rm -rf /var/lib/apt/lists/*
24+
25+ # Install Azure CLI directly using Microsoft script (more reliable)
26+ RUN curl -sL https://aka.ms/InstallAzureCLIDeb | bash
27+
28+ # Verify Azure CLI was installed and is on PATH
29+ RUN which az && az --version
30+
31+ # Install Innovation Engine during build
32+ RUN curl -Lks https://raw.githubusercontent.com/Azure/InnovationEngine/v0.2.3/scripts/install_from_release.sh | bash -s -- v0.2.3
33+
34+ # Copy requirements and install dependencies
35+ COPY requirements.txt .
36+ RUN pip install --no-cache-dir -r requirements.txt
37+
38+ # Copy the application code
39+ COPY . .
40+
41+ # Set environment variables (these will be overridden at runtime)
42+ ENV AZURE_OPENAI_API_KEY="your_api_key_here"
43+ ENV AZURE_OPENAI_ENDPOINT="your_endpoint_here"
44+ ENV PATH="/root/.local/bin:/usr/local/bin:/usr/bin:/bin:${PATH}"
45+
46+ # Set the entrypoint
47+ ENTRYPOINT ["python" , "ada.py" ]
You can’t perform that action at this time.
0 commit comments