Can’t access argon2 in Alpine Linux / Docker

I’m installing argon2 for Python with RUN apk add py3-argon2-cffi.
This installs the Python argon2 package from Alpine (https://alpine.pkgs.org/3.14/alpine-community-x86_64/py3-argon2-cffi-20.1.0-r1.apk.html).
When I try to import it with import argon2 I get

ModuleNotFoundError: No module named 'argon2'

I don’t want to install argon2 with pip because I don’t have gcc installed.
gccwould tripple my container size and I need a small container so I tried to use the Alpine argon2 package.

Do you have any advice?

Source: Python-3x Questions

LEAVE A COMMENT