Skip to content

Commit 961697d

Browse files
Add environment variables for Azure OpenAI configuration in Dockerfile
1 parent 96ff8eb commit 961697d

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

Dockerfile

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,17 @@ COPY . .
1010
# Install dependencies
1111
RUN pip install -r requirements.txt
1212

13-
# Set the default command
13+
# Set environment variables
14+
ENV API_TYPE="azure"
15+
ENV GPT_MODEL="gpt-4o-mini"
16+
ENV GPT_API_VERSION="2024-08-01-preview"
17+
ENV EMBEDDING_MODEL="text-embedding-3-small"
18+
ENV EMBEDDING_API_VERSION="2023-05-15"
19+
ENV ENDPOINT="https://ai4se-openai.openai.azure.com/"
20+
ENV AZURE_OPENAI_API_KEY="VDfaCeEbTyAyPRC3C02mZyyANPxZGBxODmWOpWechSlv7GQ8zmmuJQQJ99AKACI8hq2XJ3w3AAABACOGPYeE"
21+
22+
# Expose the application port
23+
EXPOSE 5000
24+
25+
# Run the application
1426
CMD ["python", "app.py"]

0 commit comments

Comments
 (0)