AIDelivery / Dockerfile
anchit48's picture
commented out
09d58c9 verified
Raw
History Blame Contribute Delete
695 Bytes
FROM python:3.11-slim
WORKDIR /app
# 1. Install necessary system tools
RUN apt-get update && apt-get install -y \
build-essential \
curl \
git \
&& rm -rf /var/lib/apt/lists/*
# 2. Copy the requirements first (better for caching)
COPY requirements.txt .
RUN pip3 install --no-cache-dir -r requirements.txt
# 3. Copy ALL your files into the /app folder
COPY . .
# 4. EXPOSE THE CORRECT HUGGING FACE PORT
# EXPOSE 7860
# 5. HEALTHCHECK (Optional but good)
# HEALTHCHECK CMD curl --fail http://localhost:7860/_stcore/health
# 6. RUN THE APP (Ensuring we point to app.py on port 7860)
ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]