-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
84 lines (75 loc) · 2.54 KB
/
Dockerfile
File metadata and controls
84 lines (75 loc) · 2.54 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
82
83
84
FROM php:7.3-apache-stretch
ENV PYDIO_VERSION 8.2.3
RUN apt-get update && apt-get install -y \
fontconfig-config \
fonts-dejavu-core \
imagemagick \
libcurl4-openssl-dev \
libfreetype6-dev \
libicu-dev \
libjpeg-dev \
libgd-tools \
libmagick++-dev \
libjpeg-turbo-progs \
libjpeg62-turbo-dev \
libmcrypt-dev \
libmagickwand-6-headers \
libpng-dev \
libpq-dev \
libxml2-dev \
mysql-client \
pngquant \
ssmtp \
sudo \
unzip \
wget \
zlib1g-dev \
&& apt-get clean && apt-get autoremove -q \
&& rm -rf /var/lib/apt/lists/* /usr/share/doc /usr/share/man /tmp/*
RUN pecl install \
APCu-5.1.17 \
imagick-3.4.4
RUN docker-php-ext-install -j$(nproc) \
exif \
intl \
json \
mbstring \
mysqli \
pgsql \
opcache \
xml \
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
&& docker-php-ext-install gd \
&& docker-php-ext-enable \
apcu \
imagick
RUN { \
echo 'output_buffering=Off'; \
echo 'upload_max_filesize=2G'; \
echo 'post_max_size=2G'; \
echo 'memory_limit=512M'; \
echo 'session.save_path=/var/run/pydio'; \
echo 'cgi.fix_pathinfo=0'; \
echo 'opcache.enable_cli=1'; \
} > /usr/local/etc/php/conf.d/pydio.ini
RUN mkdir -p /var/run/pydio /var/lib/pydio /etc/pydio \
&& chown www-data:www-data /var/run/pydio \
&& chown www-data:www-data /var/lib/pydio \
&& chown www-data:www-data /etc/pydio
RUN curl -fsSL -o pydio-core.tar.gz https://download.pydio.com/pub/core/archives/pydio-core-${PYDIO_VERSION}.tar.gz \
&& tar -xzf pydio-core.tar.gz -C /usr/share \
&& mv /usr/share/pydio-core-${PYDIO_VERSION} /usr/share/pydio \
&& mv /usr/share/pydio/data /var/lib/pydio/data \
&& mv /usr/share/pydio/conf /etc/pydio/conf \
&& chown -R www-data:www-data /var/lib/pydio/data \
&& sed -i -e 's!.*define("AJXP_CONF_PATH".*!define("AJXP_CONF_PATH", "/etc/pydio/conf");!g' /usr/share/pydio/base.conf.php \
&& sed -i -e 's!.*define("AJXP_DATA_PATH".*!define("AJXP_DATA_PATH", "/var/lib/pydio/data");!g' /etc/pydio/conf/bootstrap_context.php \
&& sed -i -e 's!.*define("AJXP_SHARED_CACHE_DIR".*!define("AJXP_SHARED_CACHE_DIR", "/var/lib/pydio/data/cache");!g' /etc/pydio/conf/bootstrap_context.php \
&& mkdir -p /opt/local/bin && ln -s /usr/bin/convert /opt/local/bin/convert
VOLUME /var/run/pydio
VOLUME /var/lib/pydio
COPY httpd.conf /etc/pydio/httpd.conf
RUN ln -s /etc/pydio/httpd.conf /etc/apache2/sites-available/pydio.conf \
&& a2enmod expires headers mime rewrite \
&& a2dissite 000-default \
&& a2ensite pydio