From 48d77068aeeaceed4ce90d8b739700f896a9551b Mon Sep 17 00:00:00 2001 From: Yehuda Deutsch Date: Mon, 12 Aug 2019 19:34:40 +0300 Subject: [PATCH] Fix python wheels on alpine --- Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index e82f394..84910ec 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,11 @@ FROM python:3.7-alpine MAINTAINER Yehuda Deutsch -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