1 |
579f9cdd
|
Tomáš Ballák
|
FROM php:7.4-fpm-alpine
|
2 |
|
|
RUN apk update; \
|
3 |
|
|
apk upgrade; \
|
4 |
|
|
apk add autoconf openssl-dev g++ make && \
|
5 |
1f77dd64
|
ballakt
|
echo "**** install MongoDB ****\n" && \
|
6 |
579f9cdd
|
Tomáš Ballák
|
pecl install mongodb && \
|
7 |
|
|
docker-php-ext-enable mongodb; \
|
8 |
3bae34e0
|
Tomáš Ballák
|
apk del --purge autoconf openssl-dev g++ make;
|
9 |
1f77dd64
|
ballakt
|
RUN echo "**** install Python ****\n" && \
|
10 |
6f6156eb
|
ballakt
|
apk add --no-cache python3 && \
|
11 |
|
|
if [ ! -e /usr/bin/python ]; then ln -sf python3 /usr/bin/python ; fi && \
|
12 |
|
|
\
|
13 |
1f77dd64
|
ballakt
|
echo "**** install pip ****\n" && \
|
14 |
6f6156eb
|
ballakt
|
python3 -m ensurepip && \
|
15 |
|
|
rm -r /usr/lib/python*/ensurepip && \
|
16 |
|
|
pip3 install --no-cache --upgrade pip setuptools wheel && \
|
17 |
1f77dd64
|
ballakt
|
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
|