File tree Expand file tree Collapse file tree 1 file changed +17
-5
lines changed Expand file tree Collapse file tree 1 file changed +17
-5
lines changed Original file line number Diff line number Diff line change 1
1
FROM ghcr.io/unb-libraries/nginx:2.x
2
2
MAINTAINER UNB Libraries <
[email protected] >
3
3
4
+ ENV COMPOSER_INSTALL "composer install --prefer-dist --no-interaction --no-progress"
4
5
ENV COMPOSER_MEMORY_LIMIT -1
5
6
ENV COMPOSER_PATH /usr/local/bin
6
7
ENV COMPOSER_EXIT_ON_PATCH_FAILURE 1
@@ -13,15 +14,26 @@ ENV PHP_PID_DIR /var/run/php
13
14
14
15
COPY ./build /build
15
16
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 && \
17
29
mkdir -p "$PHP_PID_DIR/" && \
18
30
chown "$NGINX_RUN_USER" :"$NGINX_RUN_GROUP" "$PHP_PID_DIR/" && \
19
31
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" && \
23
35
rm -f $PHP_FPM_CONFD_DIR/www.conf && \
24
- cp -r /build/scripts/* /scripts/ && \
36
+ $RSYNC_COPY /build/scripts/ /scripts/ && \
25
37
chmod -R 755 /scripts
26
38
27
39
LABEL ca.unb.lib.generator="php-fpm" \
You can’t perform that action at this time.
0 commit comments