BP-Estimator / Dockerfile
HMZaheer's picture
Update Dockerfile
8e8a9d8 verified
raw
history blame contribute delete
637 Bytes
# Use official Python base image
FROM python:3.10-slim
# Set working directory
WORKDIR /code
# Install system dependencies (optional, minimal here)
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements first (to cache dependencies)
COPY requirements.txt /code/
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy app code
COPY app.py /code/
# Expose Hugging Face Space port
EXPOSE 7860
# Command to run Streamlit
CMD ["streamlit", "run", "app.py", "--server.port", "7860", "--server.address", "0.0.0.0"]