From 0017df71a272e970450b78fd249e78c5e93f2d32 Mon Sep 17 00:00:00 2001 From: Cyb3r-Jak3 Date: Mon, 9 Sep 2024 17:45:17 -0400 Subject: [PATCH] Update libc6 to latest version --- build/Dockerfile | 11 +++++++---- deb/Dockerfile | 8 ++++++++ 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/build/Dockerfile b/build/Dockerfile index 1971c40..4ad99f7 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -1,5 +1,5 @@ # Use carlosedp/golang for riscv64 support -FROM carlosedp/golang:1.18 AS build +FROM golang:1.21-bookworm AS build # Install dependencies RUN apt-get update && apt-get install -y git build-essential libsecret-1-dev @@ -16,9 +16,12 @@ EXPOSE 25/tcp EXPOSE 143/tcp # Install dependencies and protonmail bridge -RUN apt-get update \ - && apt-get install -y --no-install-recommends socat pass libsecret-1-0 ca-certificates \ - && rm -rf /var/lib/apt/lists/* +RUN --mount=target=/var/lib/apt/lists,type=cache,sharing=locked \ + --mount=target=/var/cache/apt,type=cache,sharing=locked \ + rm -f /etc/apt/apt.conf.d/docker-clean \ + && apt-get update \ + && apt-get -y --no-install-recommends install \ + libc6 socat pass libsecret-1-0 ca-certificates # Copy bash scripts COPY gpgparams entrypoint.sh /protonmail/ diff --git a/deb/Dockerfile b/deb/Dockerfile index 8aa8bc7..3e92c2e 100644 --- a/deb/Dockerfile +++ b/deb/Dockerfile @@ -4,6 +4,14 @@ LABEL maintainer="Xiaonan Shen " EXPOSE 25/tcp EXPOSE 143/tcp + +RUN --mount=target=/var/lib/apt/lists,type=cache,sharing=locked \ + --mount=target=/var/cache/apt,type=cache,sharing=locked \ + rm -f /etc/apt/apt.conf.d/docker-clean \ + && apt-get update \ + && apt-get -y --no-install-recommends install \ + libc6 + WORKDIR /protonmail # Copy bash scripts