From 9b911f325719c56ab6f5e5896d8f96349a3cbb15 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Thu, 26 Apr 2018 08:13:25 +0200 Subject: [PATCH] docker: install cffi inside virtualenv `python setup.py install` installs it outside the virtualenv (because it's in `setup_requires`?), then reuse it as is when installing the dependencies. On the final container, cffi is therefore missing. --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3a8203c..6da39c3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,8 +12,8 @@ COPY --from=0 /src . RUN apt-get -qqy update && apt-get -qqy install python3-dev sqlite3 RUN python3 -m venv /isso \ && . /isso/bin/activate \ - && python setup.py install \ - && pip install gunicorn + && pip install gunicorn cffi \ + && python setup.py install # Third, create final repository FROM python:3-slim-stretch