From 31f3e52df869c72f551d956602e9a524c309eae0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauri=20V=C3=B5sandi?= Date: Wed, 9 Nov 2022 10:18:13 +0200 Subject: [PATCH] Add aiofile --- Dockerfile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Dockerfile b/Dockerfile index 57b5530..f2ce873 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,7 @@ FROM python:alpine AS build RUN apk add --no-cache gcc make musl-dev linux-headers git \ && pip3 wheel --wheel-dir=/wheels \ + aiofile \ flask \ git+https://github.com/Assarius/sanic-prometheus@Sanic_22 \ kubernetes \ @@ -13,6 +14,15 @@ RUN apk add --no-cache gcc make musl-dev linux-headers git \ sanic-ext \ sanic-wtf \ ecs-logging + +# Work around buggy setup.py in caio +RUN git clone https://github.com/mosquito/caio/ \ + && cd caio \ + && python3 setup.py bdist_wheel \ + && rm /wheels/*caio*.whl \ + && cp dist/*.whl /wheels/ + +# Generate image without build dependencies FROM python:alpine COPY --from=build /wheels /wheels RUN pip3 install --no-index /wheels/*.whl && rm -Rfv /wheels