File size: 502 Bytes
e1535b8
 
b03de51
e1535b8
 
b03de51
e1535b8
 
b03de51
0095ccd
e1535b8
 
b03de51
0095ccd
b03de51
 
0095ccd
b03de51
 
0095ccd
 
e1535b8
424a66d
0095ccd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Use official Python slim image
FROM python:3.11-slim

# Unbuffered stdout/stderr for real-time logs
ENV PYTHONUNBUFFERED=1

# Set working directory
WORKDIR /app

# Install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

# Copy application code
COPY . .

# Expose FastAPI port
EXPOSE 7860

# Start the app with Uvicorn
# Ensure GROQ_API_KEY is provided as an environment variable at runtime
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]