17 lines
373 B
Docker
17 lines
373 B
Docker
FROM python:3.10.0-alpine3.15
|
|
|
|
RUN apk add --update --no-cache\
|
|
build-base \
|
|
openldap-dev\
|
|
python3-dev\
|
|
&& rm -rf /var/cache/apk/*
|
|
|
|
# FIX https://github.com/python-ldap/python-ldap/issues/432
|
|
RUN echo 'INPUT ( libldap.so )' > /usr/lib/libldap_r.so
|
|
|
|
WORKDIR /usr/src/app
|
|
COPY requirements.txt ./
|
|
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
COPY . .
|