zero-shot-demo / Dockerfile
joeddav's picture
Switch to Docker SDK with uv for faster builds
e883644
Raw
History Blame Contribute Delete
442 Bytes
FROM python:3.11-slim
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
WORKDIR /app
# Install dependencies first for caching
COPY requirements.txt .
RUN uv pip install --system --no-cache -r requirements.txt
# Copy app files
COPY . .
EXPOSE 7860
HEALTHCHECK CMD curl --fail http://localhost:7860/_stcore/health
ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0", "--server.headless=true"]