ungleich-user/Dockerfile

17 lines
384 B
Docker
Raw Normal View History

2021-12-05 17:14:32 +00:00
FROM python:3.10.0-alpine3.15
2021-12-12 19:39:32 +00:00
WORKDIR /usr/src/app
2021-12-05 17:14:32 +00:00
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
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
2021-12-12 19:39:32 +00:00
COPY ungleichuser/ .