-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
23 lines (16 loc) · 957 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM php:8.2-fpm-alpine3.18 as php8
ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin
RUN apk update \
&& chmod +x /usr/local/bin/install-php-extensions \
&& /usr/local/bin/install-php-extensions zip-stable xdebug-stable \
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin/ --filename=composer
ENV PATH /var/app/bin:/var/app/vendor/bin:$PATH
WORKDIR /var/app
FROM php:7.4.29-cli-alpine3.15 AS php7
ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin
RUN apk update \
&& chmod +x /usr/local/bin/install-php-extensions \
&& /usr/local/bin/install-php-extensions zip-stable xdebug-3.1.6 \
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin/ --filename=composer
ENV PATH /var/app/bin:/var/app/vendor/bin:$PATH
WORKDIR /var/app