Dockerfile 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. FROM python:3.12-slim
  2. LABEL maintainer="https://github.com/pamdla"
  3. LABEL team="victor@agent①②③⑦"
  4. LABEL project="MindEchoAgent"
  5. LABEL git.repo="https://github.com/pamdla/MindEchoAgent"
  6. ENV TZ=Asia/Shanghai \
  7. DEBIAN_FRONTEND=noninteractive \
  8. PIP_INDEX_URL=https://pypi.tuna.tsinghua.edu.cn/simple/ \
  9. PIP_TRUSTED_HOST=pypi.tuna.tsinghua.edu.cn
  10. WORKDIR /app
  11. COPY requirements.txt .
  12. RUN echo "deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main" > /etc/apt/sources.list && \
  13. echo "deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main" >> /etc/apt/sources.list && \
  14. echo "deb https://mirrors.tuna.tsinghua.edu.cn/debian-security bookworm-security main" >> /etc/apt/sources.list
  15. RUN apt update \
  16. && apt install -y --no-install-recommends \
  17. && apt install -y git wget make gcc g++ \
  18. && apt install -y nodejs npm \
  19. && apt autoremove -y \
  20. && apt-get clean \
  21. && rm -rf /var/lib/apt/lists/*
  22. RUN npm config set registry https://registry.npmmirror.com
  23. # RUN python -m spacy download zh_core_web_sm \
  24. # python -m spacy download en_core_web_sm
  25. RUN pip3 install --no-cache-dir -r requirements.txt --extra-index-url https://download.pytorch.org/whl/cpu