Skip to content

Commit 9b0d54a

Browse files
committed
Float up often used utils, commands to base
1 parent 721d4e9 commit 9b0d54a

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed

Dockerfile

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
FROM ghcr.io/unb-libraries/nginx:2.x
22
MAINTAINER UNB Libraries <[email protected]>
33

4+
ENV COMPOSER_INSTALL "composer install --prefer-dist --no-interaction --no-progress"
45
ENV COMPOSER_MEMORY_LIMIT -1
56
ENV COMPOSER_PATH /usr/local/bin
67
ENV COMPOSER_EXIT_ON_PATCH_FAILURE 1
@@ -13,15 +14,26 @@ ENV PHP_PID_DIR /var/run/php
1314

1415
COPY ./build /build
1516

16-
RUN apk --no-cache add php7 php7-fpm php7-json php7-zlib php7-xml php7-phar php7-iconv php7-mcrypt curl php7-curl php7-openssl php7-gd && \
17+
RUN apk --no-cache add \
18+
php7 \
19+
php7-curl \
20+
php7-fpm \
21+
php7-gd \
22+
php7-iconv \
23+
php7-json \
24+
php7-mcrypt \
25+
php7-openssl \
26+
php7-phar \
27+
php7-xml \
28+
php7-zlib && \
1729
mkdir -p "$PHP_PID_DIR/" && \
1830
chown "$NGINX_RUN_USER":"$NGINX_RUN_GROUP" "$PHP_PID_DIR/" && \
1931
curl -sS https://getcomposer.org/installer | php -- --install-dir="$COMPOSER_PATH" --filename=composer && \
20-
cp /build/conf/nginx/app.conf "$NGINX_APP_CONF_FILE" && \
21-
cp /build/conf/php/app-php.ini "$PHP_APP_INI_FILE" && \
22-
cp /build/conf/php/app-php-fpm.conf "$PHP_FPM_APP_CONF_FILE" && \
32+
$RSYNC_COPY /build/conf/nginx/app.conf "$NGINX_APP_CONF_FILE" && \
33+
$RSYNC_COPY /build/conf/php/app-php.ini "$PHP_APP_INI_FILE" && \
34+
$RSYNC_COPY /build/conf/php/app-php-fpm.conf "$PHP_FPM_APP_CONF_FILE" && \
2335
rm -f $PHP_FPM_CONFD_DIR/www.conf && \
24-
cp -r /build/scripts/* /scripts/ && \
36+
$RSYNC_COPY /build/scripts/ /scripts/ && \
2537
chmod -R 755 /scripts
2638

2739
LABEL ca.unb.lib.generator="php-fpm" \

0 commit comments

Comments
 (0)