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