Closed hno2 closed 3 years ago
So I think I found a fix and changed my Dockerfile to
FROM python:3-buster
ADD requirements.txt /tmp
RUN pip install --upgrade pip
RUN pip install -r /tmp/requirements.txt
EXPOSE 9001
CMD python app.py
I believe this is due alpine having no native build wheel for cryptography
hi @hno2 .
Thanks for pointing me to this issue! I appreciate it.
I've just made some changes so now docker-compose
must work fine: https://github.com/dmitry-viskov/pylti1.3-flask-example/commit/907b0377e305feee02acd20893e6c9e9bfd4e538
I've just pinned version of the cryptography
library. This version is a little bit outdated and has some security vulnerabilities but it is the easiest solution. Unfortunately the last versions of cryptography
requires significant time to compile library code so that looks too redundant for such test project.
The Module
cryptography
cannot be build as it requires a (non-existing) Rust compiler. (error: can't find Rust compiler
)