Projekt

Obecné

Profil

Stáhnout (1007 Bajtů) Statistiky
| Větev: | Revize:
1
#DEV ONLY DOCKERFILE
2
FROM php:7.4-fpm-alpine
3
RUN apk update; \
4
	apk upgrade; \
5
	apk add autoconf openssl-dev g++ make && \
6
	pecl install mongodb && \
7
	docker-php-ext-enable mongodb; \
8
	apk del --purge autoconf openssl-dev g++ make;
9

    
10
RUN echo "**** install Python ****" && \
11
    apk add --no-cache python3 && \
12
    if [ ! -e /usr/bin/python ]; then ln -sf python3 /usr/bin/python ; fi && \
13
    \
14
    echo "**** install pip ****" && \
15
    python3 -m ensurepip && \
16
    rm -r /usr/lib/python*/ensurepip && \
17
    pip3 install --no-cache --upgrade pip setuptools wheel && \
18
    if [ ! -e /usr/bin/pip ]; then ln -s pip3 /usr/bin/pip ; fi
19

    
20

    
21
COPY xdebug.ini /etc/php7/conf.d/xdebug.ini
22
RUN echo -en "\n" >> /etc/php7/conf.d/xdebug.ini
23
RUN apk --update --no-cache add autoconf g++ make && \
24
    pecl install -f xdebug-2.9.4 && \
25
    docker-php-ext-enable xdebug && \
26
    apk del --purge autoconf g++ make
27
RUN echo zend_extension="$(find / -name 'xdebug.so')" >> /etc/php7/conf.d/xdebug.ini
(1-1/2)