deer-flow/docker/provisioner/Dockerfile
greatmengqi ca2fb95ee6
Some checks are pending
Unit Tests / backend-unit-tests (push) Waiting to run
Lint Check / lint-frontend (push) Waiting to run
Lint Check / lint (push) Waiting to run
feat: unified serve.sh with gateway mode support (#1847)
2026-04-05 21:07:35 +08:00

29 lines
832 B
Docker

FROM python:3.12-slim-bookworm
ARG APT_MIRROR
ARG PIP_INDEX_URL
# Optionally override apt mirror for restricted networks (e.g. APT_MIRROR=mirrors.aliyun.com)
RUN if [ -n "${APT_MIRROR}" ]; then \
sed -i "s|deb.debian.org|${APT_MIRROR}|g" /etc/apt/sources.list.d/debian.sources 2>/dev/null || true; \
sed -i "s|deb.debian.org|${APT_MIRROR}|g" /etc/apt/sources.list 2>/dev/null || true; \
fi
# Install system dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
curl \
&& rm -rf /var/lib/apt/lists/*
# Install Python dependencies
RUN pip install --no-cache-dir \
${PIP_INDEX_URL:+--index-url "$PIP_INDEX_URL"} \
fastapi \
"uvicorn[standard]" \
kubernetes
WORKDIR /app
COPY app.py .
EXPOSE 8002
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8002"]