You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Dockerfile 455B

123456789101112131415
  1. FROM python:3.11-slim-bookworm
  2. COPY --from=ghcr.io/astral-sh/uv:0.7.5 /uv /uvx /bin/
  3. ENV UV_INDEX_URL=https://pypi.tuna.tsinghua.edu.cn/simple
  4. COPY requirements.txt .
  5. RUN grep -rl 'deb.debian.org' /etc/apt/ | xargs sed -i 's|http[s]*://deb.debian.org|https://mirrors.tuna.tsinghua.edu.cn|g' && \
  6. apt-get update && \
  7. apt-get install -y curl gcc && \
  8. uv pip install --system -r requirements.txt
  9. WORKDIR /workspace
  10. CMD ["sleep", "infinity"]