diff --git a/Dockerfile b/Dockerfile index 3864cd6..55cae20 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,13 @@ -FROM golang:1.22.1-bookworm AS builder +FROM golang:1.22.3-bookworm AS builder + +RUN echo "deb http://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free non-free-firmware" > /etc/apt/sources.list && \ + echo "deb http://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware" >> /etc/apt/sources.list && \ + echo "deb http://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware" >> /etc/apt/sources.list && \ + echo "deb http://mirrors.tuna.tsinghua.edu.cn/debian-security bookworm-security main contrib non-free non-free-firmware" >> /etc/apt/sources.list + + +# 移除 Debian 12 的新的源文件 +RUN rm -rf /etc/apt/sources.list.d/debian.sources && apt update && apt install git -y COPY upx /usr/bin/upx COPY migrate /usr/bin/migrate