update apt source

This commit is contained in:
Twilight 2024-05-14 17:13:00 +08:00
parent c00396fd44
commit 3fbf7d3898

View File

@ -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 upx /usr/bin/upx
COPY migrate /usr/bin/migrate COPY migrate /usr/bin/migrate