We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65f1e59 commit 8d521d8Copy full SHA for 8d521d8
Dockerfile
@@ -2,8 +2,13 @@ FROM python:3.11-alpine
2
3
WORKDIR /app
4
COPY ./requirements.txt /app
5
-RUN pip install --no-cache-dir -r /app/requirements.txt
+# "Installing this module requires OpenSSL python bindings"
6
+RUN apk add --virtual=.build-deps gcc musl-dev libffi-dev openssl-dev python3-dev gcc openldap-dev && \
7
+ PYOPENSSL=$(grep 'pyopenssl=' requirements.txt) && \
8
+ pip install --no-cache-dir $PYOPENSSL && \
9
+ pip install --no-cache-dir -r /app/requirements.txt && \
10
+ apk del .build-deps
11
12
COPY . /app
13
CMD python /app/app.py
-ENV PYTHONUNBUFFERED=1
14
+ENV PYTHONUNBUFFERED=1
0 commit comments