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