Harshb11's picture
Update Dockerfile
58a3b93 verified
raw
history blame contribute delete
555 Bytes
FROM python:3.10-slim
# Prevent Python buffering issues
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
# Set working directory
WORKDIR /app
# System deps (keep minimal)
RUN apt-get update && apt-get install -y \
build-essential \
&& rm -rf /var/lib/apt/lists/*
# Install Python deps
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy app
COPY . .
# Streamlit port (HF expects 7860)
EXPOSE 7860
# Streamlit run command
CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]