Gaston895 commited on
Commit
620fb93
·
verified ·
1 Parent(s): 7d6b501

Update Dockerfile - AEGIS BIO LAB 10 CONDUCTOR

Browse files
Files changed (1) hide show
  1. Dockerfile +32 -0
Dockerfile ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11-slim
2
+
3
+ WORKDIR /app
4
+
5
+ # Install system dependencies
6
+ RUN apt-get update && apt-get install -y \
7
+ curl \
8
+ && rm -rf /var/lib/apt/lists/*
9
+
10
+ # Copy requirements and install Python dependencies
11
+ COPY requirements_deepseek_multi_provider.txt .
12
+ RUN pip install --no-cache-dir -r requirements_deepseek_multi_provider.txt
13
+
14
+ # Copy application files
15
+ COPY flask_chat_app_quantized.py app.py
16
+ COPY templates/ templates/
17
+
18
+ # Create environment file template
19
+ RUN echo "# API Keys for Multi-Provider Setup" > .env && \
20
+ echo "HF_TOKEN=your_huggingface_token_here" >> .env && \
21
+ echo "NOVITA_API_KEY=your_novita_api_key_here" >> .env && \
22
+ echo "FIREWORKS_API_KEY=your_fireworks_api_key_here" >> .env
23
+
24
+ # Expose port
25
+ EXPOSE 7860
26
+
27
+ # Health check
28
+ HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
29
+ CMD curl -f http://localhost:7860/status || exit 1
30
+
31
+ # Run the application
32
+ CMD ["python", "app.py"]