From af819cde25673c71605caf8df39519dd8931685d Mon Sep 17 00:00:00 2001 From: wilou Date: Mon, 23 Oct 2023 13:15:42 +0000 Subject: [PATCH] Actualiser debmirror/Dockerfile --- debmirror/Dockerfile | 30 +++++++++++++++++++++--------- 1 file changed, 21 insertions(+), 9 deletions(-) diff --git a/debmirror/Dockerfile b/debmirror/Dockerfile index e89a1ce..64086df 100644 --- a/debmirror/Dockerfile +++ b/debmirror/Dockerfile @@ -1,13 +1,25 @@ -FROM debian:sid +FROM debian:bookworm +MAINTAINER Wilfried Huysschaert -# Installer les dépendances nécessaires -RUN apt update -RUN apt install -y debmirror gnupg wget +RUN apt-get update && apt-get install -y \ + adduser \ + git \ + rsync -# Importer les clés GPG pour le miroir Debian -RUN gpg --keyserver keyserver.ubuntu.com --recv-keys A7236886F3CCCAAD148A27F80E98404D386FA1D9 \ - && gpg --keyserver keyserver.ubuntu.com --recv-keys 4CB50190207B4758A3F73A796ED0E7B82643E131 +RUN adduser \ + --system \ + --home=/opt/ftp-master.debian.org/archvsync/ \ + --shell=/bin/bash \ + --no-create-home \ + --group \ + archvsync -WORKDIR /mirror +RUN mkdir -p /opt/ftp-master.debian.org/ +WORKDIR /opt/ftp-master.debian.org/ +RUN git clone https://ftp-master.debian.org/git/archvsync.git/ +RUN chown -R archvsync:archvsync ./archvsync +WORKDIR /opt/ftp-master.debian.org/archvsync/ -CMD ["debmirror", "--host=ftp.fr.debian.org", "--root=debian", "--method=http", "--progress", "--dist=sid", "--section=main,contrib,non-free", "--i18n", "--arch=amd64", "--source", "--getcontents", "/mirror"] +ENV PATH /opt/ftp-master.debian.org/archvsync/bin:${PATH} + +CMD ["ftpsync"] \ No newline at end of file