-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (19 loc) · 769 Bytes
/
Dockerfile
File metadata and controls
25 lines (19 loc) · 769 Bytes
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
ARG PHP_VERSION
ARG COMPOSER_VERSION
FROM solutiondrive/php:php$PHP_VERSION
ARG COMPOSER_VERSION
ENV PATH "/composer/vendor/bin:$PATH"
ENV COMPOSER_ALLOW_SUPERUSER 1
ENV COMPOSER_HOME /composer
COPY config/memory-limit.ini $PHP_INI_DIR/conf.d/
RUN apk add --no-cache \
tini \
patch \
zip
RUN EXPECTED_SIGNATURE="$(wget -q -O - https://composer.github.io/installer.sig)" \
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" \
ACTUAL_SIGNATURE="$(php -r "echo hash_file('SHA384', 'composer-setup.php');")" \
sh composer-check.sh \
&& php composer-setup.php --no-ansi --install-dir=/usr/bin --filename=composer --version=${COMPOSER_VERSION} \
&& rm composer-setup.php \
&& composer --ansi --version --no-interaction