reworked how it enters
Some checks failed
Build and Push Docker Image / build (push) Failing after 10s
Some checks failed
Build and Push Docker Image / build (push) Failing after 10s
This commit is contained in:
41
Dockerfile
41
Dockerfile
@@ -1,30 +1,27 @@
|
||||
# === Dockerfile ===
|
||||
FROM ghcr.io/linuxserver/duplicati:2.1.0
|
||||
|
||||
# Remove old docker
|
||||
RUN for pkg in docker.io docker-doc docker-compose docker-compose-v2 podman-docker containerd runc; do apt-get remove $pkg; done
|
||||
# Install Docker CLI + bash + core utilities
|
||||
RUN apt-get update \
|
||||
&& apt-get install ca-certificates curl \
|
||||
&& install -m 0755 -d /etc/apt/keyrings \
|
||||
&& curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc \
|
||||
&& chmod a+r /etc/apt/keyrings/docker.asc \
|
||||
&& echo \
|
||||
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
|
||||
$(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}") stable" | \
|
||||
tee /etc/apt/sources.list.d/docker.list > /dev/null \
|
||||
&& apt-get update
|
||||
|
||||
|
||||
|
||||
RUN apt-get -y install docker-ce docker-ce-cli \
|
||||
&& containerd.io docker-buildx-plugin docker-compose-plugin postrgres17 \
|
||||
&& mkdir -p /backups
|
||||
RUN apt-get -y update \
|
||||
&& apt-get -y --no-install-recommends install \
|
||||
cron \
|
||||
bash \
|
||||
ca-certificates \
|
||||
curl \
|
||||
docker-ce-cli \
|
||||
postrgres17 \
|
||||
&& mkdir -p /backups \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Copy backup script
|
||||
COPY backup.sh /usr/local/bin/backup.sh
|
||||
RUN chmod +x /usr/local/bin/backup.sh
|
||||
COPY backup.sh /usr/local/bin/backup.sh \
|
||||
&& backup.cron /etc/cron.d/backup \
|
||||
&& startup.sh /usr/local/bin/startup.sh /
|
||||
|
||||
RUN chmod +x /usr/local/bin/backup.sh \
|
||||
&& chmod 0644 /etc/cron.d/backup \
|
||||
&& crontab /etc/cron.d/backup \
|
||||
&& chmod +x /usr/local/bin/startup.sh
|
||||
|
||||
# Use bash as default
|
||||
ENTRYPOINT ["/usr/local/bin/backup.sh"]
|
||||
ENTRYPOINT ["/usr/local/bin/startup.sh"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user