forked from DyonR/docker-nextcloudcmd-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
81 lines (70 loc) · 1.84 KB
/
Dockerfile
File metadata and controls
81 lines (70 loc) · 1.84 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
FROM debian:forky-slim
# Suppress "unable to initialize frontend: Dialog" errors
ENV DEBIAN_FRONTEND=noninteractive
# Create the directory in which the scripts will be stored
RUN mkdir -p /opt/Nextcloud/log
# Update, upgrade and install some packages
RUN apt update \
&& apt -y upgrade \
&& apt install -yq --no-install-recommends \
moreutils \
mc \
nano \
locales \
locales-all \
&& apt clean \
&& apt -y autoremove \
&& rm -rf \
/var/lib/apt/lists/* \
/tmp/* \
/var/tmp/* \
/usr/share/doc \
/usr/share/man \
/usr/share/locale \
/usr/share/info \
/usr/share/lintian
# Install the Nextcloud repository
RUN apt update \
&& apt install -yq --no-install-recommends \
openssl \
ca-certificates \
procps \
nextcloud-desktop-cmd \
&& apt upgrade -y \
&& apt-get clean \
&& apt -y autoremove \
&& rm -rf \
/var/lib/apt/lists/* \
/tmp/* \
/var/tmp/* \
/usr/share/doc \
/usr/share/man \
/usr/share/locale \
/usr/share/info \
/usr/share/lintian
RUN locale-gen en_GB.UTF-8
RUN echo 'alias ll="ls -l"\ alias ll="ls -l --color"\' >> ~/.bashrc
COPY docker-entrypoint.sh /opt/Nextcloud/
COPY run.sh /opt/Nextcloud/
COPY ini /root/.config/mc/
WORKDIR /nextclouddata
ENTRYPOINT ["/bin/bash","/opt/Nextcloud/docker-entrypoint.sh"]
CMD ["/bin/bash", "/opt/Nextcloud/run.sh"]
ENV LANG en_GB.UTF-8
ENV LANGUAGE=en_GB:en
ENV LC_ALL en_GB.UTF-8
ENV LC_TIME=en_GB.UTF-8
ENV NEXTCLOUD_USER=NEXTCLOUD_username \
NEXTCLOUD_PASS=NEXTCLOUD_passwordORtoken \
NEXTCLOUD_SERVER=yourserver.com \
NEXTCLOUD_PROTO=https \
NEXTCLOUD_URLPATH=/ \
NEXTCLOUD_WEBDAV=remote.php/webdav \
NEXTCLOUD_FILEPATH=/ \
TRUST_SELFSIGN=0 \
SYNC_HIDDEN=0 \
SILENCE_OUTPUT=1 \
RUN_INTERVAL=120 \
DEBUG=0 \
RUN_UID=9001 \
RUN_GID=9001