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