Dockerfile hinzugefügt
This commit is contained in:
16
Dockerfile
Normal file
16
Dockerfile
Normal file
@@ -0,0 +1,16 @@
|
||||
FROM ubuntu:24.04
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --no-install-recommends apt-mirror ca-certificates rsync && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
# mirror.list wird zur Build-Zeit reinkopiert, kann aber auch gemountet werden
|
||||
COPY mirror.list /etc/apt/mirror.list
|
||||
VOLUME ["/var/spool/apt-mirror"]
|
||||
# Einfache Endlosschleife: alle 12h synchronisieren
|
||||
CMD bash -c 'mkdir -p /var/spool/apt-mirror/var; \
|
||||
echo "[$(date -Is)] initial sync..." >&2; \
|
||||
apt-mirror || true; \
|
||||
while true; do \
|
||||
echo "[$(date -Is)] periodic sync..." >&2; \
|
||||
apt-mirror || true; \
|
||||
sleep 12h; \
|
||||
done'
|
||||
Reference in New Issue
Block a user