From 3fbf7d389802e3ff847466cb7c4b1e891392d60c Mon Sep 17 00:00:00 2001 From: Twilight Date: Tue, 14 May 2024 17:13:00 +0800 Subject: [PATCH] update apt source --- Dockerfile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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