-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
60 lines (54 loc) · 1.42 KB
/
Dockerfile
File metadata and controls
60 lines (54 loc) · 1.42 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
FROM debian:bookworm-slim
# 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 \
&& 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 \
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
COPY *.sh /opt/Nextcloud/
WORKDIR /nextclouddata
ENTRYPOINT ["/bin/bash","/opt/Nextcloud/docker-entrypoint.sh"]
CMD ["/bin/bash", "/opt/Nextcloud/run.sh"]
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=30 \
RUN_UID=99 \
RUN_GID=100