Dockerfile 687 B

12345678
  1. FROM maven:3.8.6-openjdk-8-slim
  2. COPY settings.xml /root/.m2/
  3. RUN echo "deb http://mirror.nju.edu.cn/debian/ bullseye main contrib non-free" > /etc/apt/sources.list && \
  4. echo "deb http://mirror.nju.edu.cn/debian/ bullseye-updates main contrib non-free" >> /etc/apt/sources.list && \
  5. echo "deb http://mirror.nju.edu.cn/debian/ bullseye-backports main contrib non-free" >> /etc/apt/sources.list && \
  6. echo "deb http://mirror.nju.edu.cn/debian-security bullseye-security main contrib non-free" >> /etc/apt/sources.list && \
  7. apt update && apt install -y python3 python3-pip python-is-python3 \
  8. && pip config set global.index-url https://mirror.nju.edu.cn/pypi/web/simple \