Actualiser debmirror/Dockerfile
This commit is contained in:
parent
675419fce3
commit
af819cde25
@ -1,13 +1,25 @@
|
||||
FROM debian:sid
|
||||
FROM debian:bookworm
|
||||
MAINTAINER Wilfried Huysschaert <wilfried@sympatech.fr>
|
||||
|
||||
# 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"]
|
||||
Loading…
x
Reference in New Issue
Block a user