From 51065afaedcedaea22207125e260611a215fd2ee Mon Sep 17 00:00:00 2001 From: jackarain Date: Thu, 2 Nov 2023 19:55:49 +0800 Subject: [PATCH] Update Dockerfile & Dockerfile.ubuntu --- Dockerfile | 5 +++-- Dockerfile.ubuntu | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index a738c1754..3f2e5e9f7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,7 @@ -FROM alpine:edge as builder +FROM alpine:latest as builder -RUN apk add -u alpine-keys --allow-untrusted +RUN apk update +RUN apk upgrade RUN apk add --no-cache fortify-headers bsd-compat-headers libgphobos libgomp libatomic binutils bash build-base make gcc musl-dev cmake ninja g++ linux-headers git bison elfutils-dev libcap-dev flex iptables-dev ADD . /autogit diff --git a/Dockerfile.ubuntu b/Dockerfile.ubuntu index 359f3ce77..3eb2e74f3 100644 --- a/Dockerfile.ubuntu +++ b/Dockerfile.ubuntu @@ -1,6 +1,6 @@ FROM ubuntu:22.04 as builder -RUN apt-get update && apt-get install -y ca-certificates +RUN apt-get update && apt-get install --fix-missing -y ca-certificates RUN sed -i "s@http://.*archive.ubuntu.com@https://mirrors.tuna.tsinghua.edu.cn@g" /etc/apt/sources.list && sed -i "s@http://.*security.ubuntu.com@https://mirrors.tuna.tsinghua.edu.cn@g" /etc/apt/sources.list RUN apt-get update && apt-get upgrade -y RUN apt-get install -y cmake gcc g++ ninja-build