blob: b0f9a57f0b5f3fda4fe780596090730fb067d25d (
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
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
|
FROM ownyourbits/nextcloud-x86
MAINTAINER Ignacio Núñez Hernanz <nacho@ownyourbits.com>
SHELL ["/bin/bash", "-c"]
ENV DOCKERBUILD 1
COPY nextcloudpi.sh /usr/local/etc/
RUN \
apt-get update; \
apt-get install --no-install-recommends -y wget ca-certificates; \
# install nextcloudpi
source /usr/local/etc/library.sh; \
set +x; \
cd /usr/local/etc/; \
install_script nextcloudpi.sh; \
# fix default paths
sed -i 's|/media/USBdrive|/data/backups|' nextcloudpi-config.d/nc-backup.sh; \
# specific cleanup
rm /usr/local/etc/nextcloudpi.sh; \
# letsencrypt build artifacts cleanup
apt-get purge -y \
make \
git \
augeas-lenses \
binutils \
cpp \
cpp-6 \
gcc \
gcc-6 \
libasan3 \
libaugeas0 \
libc-dev-bin \
libc6-dev \
libcc1-0 \
libcilkrts5 \
libexpat1-dev \
libffi-dev \
libgcc-6-dev \
libgomp1 \
libisl15 \
libitm1 \
liblsan0 \
libmpc3 \
libmpx2 \
libpython-dev \
libpython2.7-dev \
libquadmath0 \
libssl-dev \
libtsan0 \
libubsan0 \
linux-libc-dev \
python-dev \
python-virtualenv \
python2.7-dev \
python-pkg-resources \
python3-pkg-resources \
python3-virtualenv \
virtualenv \
python-pip-whl; \
# package clean up
apt-get autoremove -y; \
apt-get clean; \
rm -f /var/lib/apt/lists/*; \
rm -rf /usr/share/man/*; \
rm -rf /usr/share/doc/*; \
rm -f /var/log/alternatives.log /var/log/apt/*; \
rm /var/cache/debconf/*-old;
COPY docker/nextcloudpi/000ncp /etc/services-enabled.d/
# 4443 - ncp-web
EXPOSE 80 443 4443
|