Dockerfile 872 B

123456789101112
  1. FROM node:16.15.1-bullseye-slim
  2. WORKDIR /build
  3. COPY requirements.txt .
  4. RUN echo "deb http://mirror.nju.edu.cn/debian/ bullseye main contrib non-free" > /etc/apt/sources.list && \
  5. echo "deb http://mirror.nju.edu.cn/debian/ bullseye-updates main contrib non-free" >> /etc/apt/sources.list && \
  6. echo "deb http://mirror.nju.edu.cn/debian/ bullseye-backports main contrib non-free" >> /etc/apt/sources.list && \
  7. echo "deb http://mirror.nju.edu.cn/debian-security bullseye-security main contrib non-free" >> /etc/apt/sources.list && \
  8. apt update && apt install -y python3 python3-pip python-is-python3 make git \
  9. && pip config set global.index-url https://mirror.nju.edu.cn/pypi/web/simple \
  10. && pip install -U pip setuptools && pip install -r requirements.txt \
  11. && rm requirements.txt \
  12. && yarn config set registry https://registry.npmmirror.com