Welcome to mirror list, hosted at ThFree Co, Russian Federation.

Dockerfile « nextcloud « docker-armhf - github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 1220909e92dd7c185d34377ab2bb84d8e9a4b68a (plain)
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
FROM ownyourbits/lamp-armhf

MAINTAINER Ignacio Núñez Hernanz <nacho@ownyourbits.com>

SHELL ["/bin/bash", "-c"]

ENV DOCKERBUILD 1

COPY etc/library.sh /usr/local/etc/
COPY etc/ncp-config.d/nc-init.sh etc/ncp-config.d/nc-nextcloud.sh /

RUN \

# installation ( /var/www/nextcloud -> /data/app which will be in a volume )
apt-get update; \
apt-get install --no-install-recommends -y wget ca-certificates sudo; \
source /usr/local/etc/library.sh; \
set +x; \
install_script  /nc-nextcloud.sh; \
activate_script /nc-nextcloud.sh; \
mv /var/www/nextcloud /data-ro/app; \
ln -s /data-ro/app /var/www/nextcloud; \

# package cleanup 
apt-get autoremove -y; \
apt-get clean; \
rm /var/lib/apt/lists/* -f; \
rm -rf /usr/share/man/*; \
rm -rf /usr/share/doc/*; \
rm /var/cache/debconf/*-old; \
rm -f /var/log/alternatives.log /var/log/apt/*; \

# specific cleanup
apt-get purge -y wget ca-certificates; \
rm /nc-nextcloud.sh; \
sed -i -E "s/^requirepass .*/requirepass default/" /etc/redis/redis.conf; \
echo -e "[client]\npassword=default" > /root/.my.cnf; \
chmod 600 /root/.my.cnf

COPY docker-common/nextcloud/020nextcloud /etc/services-enabled.d/
COPY bin/ncp-provisioning.sh /usr/local/bin/

# display message until first run initialization is complete
COPY docker-common/nextcloud/ncp-wait-msg.html /data-ro/app
RUN \
mv /data-ro/app/index.php /; \
mv /data-ro/app/ncp-wait-msg.html /data-ro/app/index.php;