Skip to content

Commit 8d521d8

Browse files
author
k
committed
Try fixing mlat API
1 parent 65f1e59 commit 8d521d8

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Dockerfile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,13 @@ FROM python:3.11-alpine
22

33
WORKDIR /app
44
COPY ./requirements.txt /app
5-
RUN pip install --no-cache-dir -r /app/requirements.txt
5+
# "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
611

712
COPY . /app
813
CMD python /app/app.py
9-
ENV PYTHONUNBUFFERED=1
14+
ENV PYTHONUNBUFFERED=1

0 commit comments

Comments
 (0)