CoolFace
Apppublic

Muhammad-Umer-Khan/PersonalAssistant

sourceHugging Faceupdated 11mo agoView on Hugging Face
1likes
Dockerfile22 linesDownload Raw Back to root
1# Dockerfile for Personal Assistant RAG Chatbot
2FROM python:3.12-slim
3
4# Prevent writing pyc files and enable stdout logging
5ENV PYTHONDONTWRITEBYTECODE=1
6
7# Set environment variable for unbuffered stdout
8ENV PYTHONUNBUFFERED=1
9
10# Set the working directory
11WORKDIR /app    
12
13# Copy the requirements.txt file and install dependencies
14COPY requirements.txt .
15RUN pip install --no-cache-dir -r requirements.txt
16
17# Copy the rest of the application code
18COPY . .
19
20# Expose the port (Hugging Face expects 7860)
21EXPOSE 7860
22CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]