lucky / Dockerfile
Commander
๐Ÿš€ FORCE FULL REBUILD: Docker cache clear
c2599a8
raw
history blame contribute delete
681 Bytes
FROM python:3.10-slim
# Force rebuild: 2026-01-29 19:10
WORKDIR /app
RUN apt-get update && apt-get install -y \
build-essential \
curl \
git \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements first to leverage Docker cache
COPY requirements.txt .
# Install Python dependencies with --no-cache-dir to keep image small
# Upgrade pip first to avoid issues
RUN pip3 install --upgrade pip && \
pip3 install --no-cache-dir -r requirements.txt
COPY . .
# HF Space default port is 7860
EXPOSE 7860
HEALTHCHECK CMD curl --fail http://localhost:7860/_stcore/health
ENTRYPOINT ["streamlit", "run", "hf_app.py", "--server.port=7860", "--server.address=0.0.0.0"]