-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathDockerfile
More file actions
23 lines (21 loc) · 719 Bytes
/
Dockerfile
File metadata and controls
23 lines (21 loc) · 719 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM debian:jessie
LABEL author="quick.es@gmail.com"
LABEL description="yandex disk"
ENV DATA="/data" \
INTERVAL="60" \
EXCLUDE="" \
USER="" \
PASSWORD="" \
token="/yandex/passwd" \
OPTIONS=""
COPY entrypoint.sh /
RUN apt update && apt install -y wget \
&& echo "deb http://repo.yandex.ru/yandex-disk/deb/ stable main" | tee -a /etc/apt/sources.list.d/yandex.list > /dev/null \
&& wget http://repo.yandex.ru/yandex-disk/YANDEX-DISK-KEY.GPG -O- | apt-key add - \
&& apt-get update \
&& apt-get install -y yandex-disk \
&& chmod +x /entrypoint.sh \
&& useradd -ms /bin/bash user \
&& mkdir /yandex && chmod 777 /yandex
ENTRYPOINT [ "/entrypoint.sh" ]
CMD [ "start" ]