1
|
FROM php:7.4-fpm-alpine
|
2
|
RUN apk update; \
|
3
|
apk upgrade; \
|
4
|
apk add autoconf openssl-dev g++ make && \
|
5
|
echo "**** install MongoDB ****\n" && \
|
6
|
pecl install mongodb && \
|
7
|
docker-php-ext-enable mongodb; \
|
8
|
apk del --purge autoconf openssl-dev g++ make;
|
9
|
RUN echo "**** install Python ****\n" && \
|
10
|
apk add --no-cache python3 && \
|
11
|
if [ ! -e /usr/bin/python ]; then ln -sf python3 /usr/bin/python ; fi && \
|
12
|
\
|
13
|
echo "**** install pip ****\n" && \
|
14
|
python3 -m ensurepip && \
|
15
|
rm -r /usr/lib/python*/ensurepip && \
|
16
|
pip3 install --no-cache --upgrade pip setuptools wheel && \
|
17
|
if [ ! -e /usr/bin/pip ]; then ln -s pip3 /usr/bin/pip ; fi
|
18
|
RUN echo "**** install PHP Composer ****\n" && \
|
19
|
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer
|