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.
This commit is contained in:
parent
c26d59de08
commit
9b911f3257
@ -12,8 +12,8 @@ COPY --from=0 /src .
|
|||||||
RUN apt-get -qqy update && apt-get -qqy install python3-dev sqlite3
|
RUN apt-get -qqy update && apt-get -qqy install python3-dev sqlite3
|
||||||
RUN python3 -m venv /isso \
|
RUN python3 -m venv /isso \
|
||||||
&& . /isso/bin/activate \
|
&& . /isso/bin/activate \
|
||||||
&& python setup.py install \
|
&& pip install gunicorn cffi \
|
||||||
&& pip install gunicorn
|
&& python setup.py install
|
||||||
|
|
||||||
# Third, create final repository
|
# Third, create final repository
|
||||||
FROM python:3-slim-stretch
|
FROM python:3-slim-stretch
|
||||||
|
Loading…
Reference in New Issue
Block a user