Actualiser debmirror/Dockerfile

This commit is contained in:
wilou 2023-10-23 13:15:42 +00:00
parent 675419fce3
commit af819cde25

View File

@ -1,13 +1,25 @@
FROM debian:sid FROM debian:bookworm
MAINTAINER Wilfried Huysschaert <wilfried@sympatech.fr>
# Installer les dépendances nécessaires RUN apt-get update && apt-get install -y \
RUN apt update adduser \
RUN apt install -y debmirror gnupg wget git \
rsync
# Importer les clés GPG pour le miroir Debian RUN adduser \
RUN gpg --keyserver keyserver.ubuntu.com --recv-keys A7236886F3CCCAAD148A27F80E98404D386FA1D9 \ --system \
&& gpg --keyserver keyserver.ubuntu.com --recv-keys 4CB50190207B4758A3F73A796ED0E7B82643E131 --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"]