dockerfile readability

This commit is contained in:
Diego Lendoiro 2017-08-16 16:31:22 +01:00
parent e1bac61987
commit dfe5c7b04d
1 changed files with 24 additions and 27 deletions

View File

@ -36,40 +36,37 @@ ARG PHP_GNUPG_DEPS="php5-dev \
zlib-dev \
file"
RUN apk update &&\
apk add $BASE_PHP_DEPS \
bash \
RUN apk add --no-cache $BASE_PHP_DEPS \
sed \
ca-certificates \
curl \
tar \
libpcre32 \
recode \
libxml2 \
bash \
curl \
nginx \
gpgme \
gnupg1 \
mysql-client \
recode \
libxml2 \
openssl \
nginx
libpcre32 \
mysql-client \
ca-certificates
RUN apk add $PHP_GNUPG_DEPS && \
ln -s /usr/bin/php5 /usr/bin/php && \
ln -s /usr/bin/phpize5 /usr/bin/phpize && \
RUN apk add --no-cache $PHP_GNUPG_DEPS \
&& ln -s /usr/bin/php5 /usr/bin/php \
&& ln -s /usr/bin/phpize5 /usr/bin/phpize \
#https://bugs.alpinelinux.org/issues/5378
sed -i "s/ -n / /" $(which pecl) && \
pecl install gnupg memcache && \
echo "extension=memcache.so" > /etc/php5/conf.d/memcache.ini && \
echo "extension=gnupg.so" > /etc/php5/conf.d/gnupg.ini && \
apk del $PHP_GNUPG_DEPS
RUN curl -sS https://getcomposer.org/installer | php && \
mv composer.phar /usr/local/bin/composer
RUN mkdir /var/www/passbolt && curl -sSL $PASSBOLT_URL | \
tar zxf - -C /var/www/passbolt --strip-components 1 && \
chown -R nginx:nginx /var/www/passbolt && \
chmod -R +w /var/www/passbolt/app/tmp && \
chmod +w /var/www/passbolt/app/webroot/img/public
&& sed -i "s/ -n / /" $(which pecl) \
&& pecl install gnupg memcache \
&& echo "extension=memcache.so" > /etc/php5/conf.d/memcache.ini \
&& echo "extension=gnupg.so" > /etc/php5/conf.d/gnupg.ini \
&& apk del $PHP_GNUPG_DEPS \
&& curl -sS https://getcomposer.org/installer | php \
&& mv composer.phar /usr/local/bin/composer \
&& mkdir /var/www/passbolt \
&& curl -sSL $PASSBOLT_URL | tar zxf - -C /var/www/passbolt --strip-components 1 \
&& chown -R nginx:nginx /var/www/passbolt \
&& chmod -R +w /var/www/passbolt/app/tmp \
&& chmod +w /var/www/passbolt/app/webroot/img/public
COPY conf/passbolt.conf /etc/nginx/conf.d/default.conf
COPY bin/docker-entrypoint.sh /docker-entrypoint.sh