ungleich-user/Dockerfile

18 lines
373 B
Text
Raw Normal View History

2021-12-05 17:14:32 +00:00
FROM python:3.10.0-alpine3.15
RUN apk add --update --no-cache\
2021-12-05 17:19:07 +00:00
build-base \
2021-12-05 17:14:32 +00:00
openldap-dev\
python3-dev\
&& rm -rf /var/cache/apk/*
2021-12-12 19:07:32 +00:00
# FIX https://github.com/python-ldap/python-ldap/issues/432
2021-12-05 17:14:32 +00:00
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 . .