chatbot / Dockerfile
lakhera2023's picture
Create Dockerfile
783215c verified
raw
history blame contribute delete
356 Bytes
FROM python:3.11-slim
WORKDIR /app
# Install deps first (better layer caching)
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy app code
COPY app.py .
# Hugging Face Spaces (and many platforms) expect 7860
EXPOSE 7860
# Run Streamlit
CMD ["streamlit", "run", "app.py", "--server.address=0.0.0.0", "--server.port=7860"]