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
|
COPY requirements.txt /requirements.txt
|
21
|
RUN pip install -r /requirements.txt
|