-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (22 loc) · 674 Bytes
/
Dockerfile
File metadata and controls
26 lines (22 loc) · 674 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM ghcr.io/linuxserver/baseimage-ubuntu:noble
LABEL maintainer="aptalca"
ENV XDG_CONFIG_HOME="/config"
RUN \
apt-get update && \
apt-get install -y \
logrotate \
unzip && \
echo "**** install rclone ****" && \
curl https://rclone.org/install.sh | bash && \
echo "**** fix logrotate ****" && \
sed -i \
-e 's,cd /var/lib/logrotate,cd /config/logrotate,g' \
-e 's,/usr/sbin/logrotate /etc/logrotate.conf,/usr/sbin/logrotate /etc/logrotate.conf -s /config/logrotate/status,g' \
/etc/cron.daily/logrotate && \
echo "**** clean up ****" && \
rm -rf \
/tmp/* \
/var/lib/apt/lists/* \
/var/tmp/*
# add local files
COPY /root /