uvicorn-gunicorn-docker icon indicating copy to clipboard operation
uvicorn-gunicorn-docker copied to clipboard

Create python3.8-alpine3.12.dockerfile

Open hopeswiller opened this issue 4 years ago • 5 comments

Installing cryptography in alpine 3.10 fails. It needs at least Alpine 3.12 to be able to match the rust extension requirement >=1.41.0

hopeswiller avatar Mar 13 '21 13:03 hopeswiller

We've just hit this issue too. It'd be very helpful to have this merged and filtered down into the FastAPI image too... Am very happy to perform some testing etc if that helps.

wallyhall avatar Jun 29 '21 08:06 wallyhall

For those not familiar with the backstory to this, there is some detail on Cryptography installation under Alpine since version 3.5 published online.

Quoting from that:

Warning

The Rust available by default in Alpine < 3.12 is older than the minimum supported version. See the Rust installation instructions for information about installing a newer Rust.

Unfortunately the pre-built Cryptography wheels aren't (currently) available for Alpine either:

Some Linux distributions (most notably Alpine) are not manylinux compatible so we cannot distribute wheels for them.

wallyhall avatar Jun 29 '21 08:06 wallyhall

Hey! Thanks for the interest. There's now a version with Python 3.9 and Alpine 3.14. Does that work for you?

I would rather not add more Alpine versions per Python version.

tiangolo avatar Sep 17 '21 10:09 tiangolo

@tiangolo - thank-you so much, this is really appreciated. I'll give it a go right now, and try to confirm by the end of today (I'm on holiday next week).

wallyhall avatar Sep 17 '21 10:09 wallyhall

@tiangolo - thank-you so much, this is really appreciated. I'll give it a go right now, and try to confirm by the end of today (I'm on holiday next week).

Looks to be working a champ. Thank-you again!

wallyhall avatar Sep 17 '21 15:09 wallyhall

Thanks for reporting back @wallyhall! :rocket:

Sorry for the long delay! 🙈 I wanted to personally address each issue/PR and they piled up through time, but now I'm checking each one in order.

tiangolo avatar Nov 25 '22 15:11 tiangolo

Assuming the original issue was solved, it will be automatically closed now. But feel free to add more comments or create new issues.

github-actions[bot] avatar Dec 06 '22 00:12 github-actions[bot]