From 4afe7234489ae8013cc3406285f2814841914de4 Mon Sep 17 00:00:00 2001 From: Taka Date: Wed, 25 Mar 2020 05:19:48 +0000 Subject: [PATCH] Worked around a pip problem when building the containers. --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index 43b5457..fe5e9c1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,6 +20,9 @@ FROM base # copy the Python requirements COPY --from=build /install /usr/local +# FUDGE! It looks like pip is not honoring the install prefix for dateutil (an alembic dependency) :-/ +COPY --from=build /usr/local/lib/python3.7/site-packages/python_dateutil-2.8.1.dist-info /usr/local/lib/python3.7/site-packages/python_dateutil-2.8.1.dist-info +COPY --from=build /usr/local/lib/python3.7/site-packages/dateutil /usr/local/lib/python3.7/site-packages/dateutil RUN apk --no-cache add libpq RUN pip install --upgrade pip RUN apk add libxslt