Fix scipy build dependencies

Fix scipy build dependencies by changing the image from python:3.7-alpine to python:3.7
This commit is contained in:
Vincent Tjianattan
2021-03-17 00:42:35 +07:00
committed by GitHub
parent 6a84875775
commit 39b713497d
+6 -6
View File
@@ -1,21 +1,21 @@
FROM python:3.7-alpine
FROM python:3.7
LABEL maintainer="Soxoj <soxoj@protonmail.com>"
WORKDIR /app
ADD requirements.txt .
RUN pip install --upgrade pip \
&& apk add --update --virtual .build-dependencies \
build-base \
RUN pip install --upgrade pip
RUN apt update -y
RUN apt install -y\
gcc \
musl-dev \
libxml2 \
libxml2-dev \
libxslt-dev \
jpeg-dev \
&& YARL_NO_EXTENSIONS=1 python3 -m pip install maigret \
&& apk del .build-dependencies \
&& rm -rf /var/cache/apk/* \
/tmp/* \
/var/tmp/*