Fix cryptography
This PR rewrites the Dockerfiles to use python:3.9-slim
rather than the Alpine images so we can get pre-built .whls for the new Rust-based Python cryptography
package.
See https://github.com/pyca/cryptography/issues/5771 for more details about the underlying issue. Since our Dockerfile used the python:alpine
base image, there wasn't a prebuilt .whl for the new cryptography package, and there are a few hoops to jump through to install a working Rust compiler.
Edited by Derrick Liu