-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
37 lines (32 loc) · 1001 Bytes
/
Dockerfile
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
27
28
29
30
31
32
33
34
35
36
FROM alpine:3
ENV LANG=C.UTF-8 \
RCLONE_VER=1.68.2-r1
ADD scripts/* /usr/local/sbin/
ADD files/* /
COPY deps/builds/unrar-7.0.9-r0.apk /tmp/unrar.apk
RUN apk update && \
apk add --no-cache --allow-untrusted /tmp/unrar.apk && \
apk add --no-cache \
rclone=$RCLONE_VER \
unzip \
grep \
file \
coreutils \
findutils \
iputils \
curl \
bash \
ca-certificates \
shadow \
tzdata \
msmtp \
logrotate && \
useradd -u 1000 -U -G users -d /config -s /bin/false abc && \
chown -R root:root /usr/local/sbin/ && \
chmod -R 755 /usr/local/sbin/ && \
ln -s /usr/local/sbin/setup.sh /setup.sh && \
ln -s /usr/local/sbin/sync.sh /sync.sh && \
ln -s /usr/local/sbin/common.sh /common.sh && \
rm -rf /var/cache/apk/* /tmp/* /root/.cache
#USER abc # continue as root, as we need to set UID & GID in entrypoint!
ENTRYPOINT ["/usr/local/sbin/entry.sh"]