This repository has been archived by the owner on Apr 1, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
Dockerfile
86 lines (82 loc) · 1.92 KB
/
Dockerfile
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
82
83
84
85
86
FROM ghcr.io/linuxserver/baseimage-alpine-nginx:3.12
# set version label
ARG BUILD_DATE
ARG VERSION
ARG PYDIO_VERSION
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="sparklyballs"
RUN \
echo "**** install packages ****" && \
apk add --no-cache \
acl \
bzip2 \
curl \
git \
gzip \
imagemagick \
memcached \
openssl \
php7-apcu \
php7-bcmath \
php7-bz2 \
php7-calendar \
php7-ctype \
php7-curl \
php7-dba \
php7-dom \
php7-exif \
php7-ftp \
php7-gd \
php7-gettext \
php7-iconv \
php7-imagick \
php7-imap \
php7-intl \
php7-ldap \
php7-mcrypt \
php7-memcached \
php7-mysqli \
php7-mysqlnd \
php7-opcache \
php7-pear \
php7-pgsql \
php7-pspell \
php7-snmp \
php7-sqlite3 \
php7-ssh2 \
php7-xmlrpc \
re2c \
rsync \
sqlite \
ssmtp \
subversion \
tar \
unzip \
wget \
xz && \
if [[ -e /usr/lib/php7/ssh2.so && ! -e /usr/lib/php7/modules/ssh2.so ]]; then \
ln -s /usr/lib/php7/ssh2.so /usr/lib/php7/modules/ssh2.so ; fi && \
echo "**** install mailmimedecode ****" && \
pear install \
Mail_mimeDecode && \
echo "**** configure php, including symlink to fix cli warning in pydio. ****" && \
ln -sf \
/usr/bin/php7 \
/usr/bin/php && \
sed -i \
-e "s#\output_buffering =.*#\output_buffering = \off#g" \
-e "s/post_max_size =.*$/post_max_size = 1560M/" \
-e "s/upload_max_filesize =.*$/upload_max_filesize = 2048M/" \
-e 's#;session.save_path = "/tmp"#session.save_path = "/config/sess"#g' \
/etc/php7/php.ini && \
echo "**** Tag current version. ****" && \
if [ -z ${PYDIO_VERSION+x} ]; then \
PYDIO_VERSION=$(curl -sX GET https://download.pydio.com/pub/linux/debian/dists/bionic/main/binary-amd64/Packages \
|grep -A 7 -m 1 'Package: pydio-core' | awk -F ': ' '/Version/{print $2;exit}' | sed 's/..$//'); \
fi && \
echo ${PYDIO_VERSION} > /version.txt
# copy local files
COPY root/ /
# ports and volumes
EXPOSE 80 443
VOLUME /config /data