Fix python wheels on alpine

This commit is contained in:
Yehuda Deutsch 2019-08-12 19:34:40 +03:00
parent 3bce181e63
commit 48d77068ae

View file

@ -2,7 +2,11 @@ FROM python:3.7-alpine
MAINTAINER Yehuda Deutsch <yeh@uda.co.il>
RUN pip install sanic
RUN echo 'manylinux1_compatible = True' > /usr/local/lib/python3.7/_manylinux.py
RUN apk add --virtual .build-deps gcc musl-dev \
&& pip install sanic \
&& rm -Rf ~/.cache \
&& apk --purge del .build-deps
WORKDIR /code
COPY app.py /code