dynamicweb/Dockerfile

20 lines
431 B
Text
Raw Normal View History

2024-02-17 11:48:17 +00:00
# FROM python:3.10.0-alpine3.15
FROM python:3.5-alpine3.12
2021-12-17 21:02:20 +00:00
WORKDIR /usr/src/app
RUN apk add --update --no-cache \
git \
build-base \
openldap-dev \
python3-dev \
libpq-dev \
2021-12-17 21:02:20 +00:00
&& 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
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
COPY ./ .