# syntax=docker/dockerfile:1 #FROM ubuntu:20.04 FROM debian:12.2 #FROM debian:stable-20231120 #RUN echo $' \n\ #deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free non-free-firmware\n\ #deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free non-free-firmware\n\ #deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware\n\ #deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware\n\ #deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware\n\ #deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware\n\ #deb https://mirrors.tuna.tsinghua.edu.cn/debian-security bookworm-security main contrib non-free non-free-firmware\n\ #deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security bookworm-security main contrib non-free non-free-firmware\n\' >> /etc/apt/sources.list
#RUN sed -i "s|http://deb.debian.org/debian|http://mirror.sjtu.edu.cn/debian|g" /etc/apt/sources.list RUN sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list.d/debian.sources
tasks.named("checkFormatMain") { // def generatedSources = fileTree("build/generated-sources/main") // // Exclude source generated from the templates as expand(properties) changes line endings on Windows // exclude { candidate -> generatedSources.contains(candidate.file) } // // Add the templates to check that the input is correctly formatted // source(fileTree("src/main/javaTemplates")) }
修改后如下
1 2 3 4 5 6 7 8 9 10 11 12
tasks.named("checkFormatMain") { // def generatedSources = fileTree("build/generated-sources/main") // // Exclude source generated from the templates as expand(properties) changes line endings on Windows // exclude { candidate -> generatedSources.contains(candidate.file) } // // Add the templates to check that the input is correctly formatted // source(fileTree("src/main/javaTemplates"))
# syntax=docker/dockerfile:1 #FROM ubuntu:20.04 FROM debian:12.2 #FROM debian:stable-20231120 #RUN echo $' \n\ #deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free non-free-firmware\n\ #deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free non-free-firmware\n\ #deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware\n\ #deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware\n\ #deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware\n\ #deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware\n\ #deb https://mirrors.tuna.tsinghua.edu.cn/debian-security bookworm-security main contrib non-free non-free-firmware\n\ #deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security bookworm-security main contrib non-free non-free-firmware\n\' >> /etc/apt/sources.list
#RUN sed -i "s|http://deb.debian.org/debian|http://mirror.sjtu.edu.cn/debian|g" /etc/apt/sources.list RUN sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list.d/debian.sources