Compare commits

...

5 Commits

Author SHA1 Message Date
PCoder 9e98125b13 Use the same django-filer version being used on production 2024-02-19 20:50:36 +05:30
PCoder 8d13629c8b Use proper library path for Pillow 2024-02-19 20:49:29 +05:30
PCoder b6ff2b62c1 Add comment for alpine 3.14 requirement 2024-02-19 20:44:17 +05:30
PCoder 893c816846 Add apks required for the build on alpine 3.12 2024-02-19 20:43:41 +05:30
PCoder f178be8395 Update .dockerignore: ignore .env 2024-02-19 20:42:34 +05:30
3 changed files with 14 additions and 3 deletions

View File

@ -1 +1,2 @@
.git
.env

View File

@ -8,12 +8,22 @@ RUN apk add --update --no-cache \
build-base \
openldap-dev \
python3-dev \
libpq-dev \
postgresql-dev \
jpeg-dev \
libxml2-dev \
libxslt-dev \
libmemcached-dev \
zlib-dev \
&& rm -rf /var/cache/apk/*
## For alpine 3.15 replace postgresql-dev with libpq-dev
# 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
# Pillow seems to need LIBRARY_PATH set as follows: (see: https://github.com/python-pillow/Pillow/issues/1763#issuecomment-222383534)
RUN LIBRARY_PATH=/lib:/usr/lib /bin/sh -c "pip install --no-cache-dir -r requirements.txt"
COPY ./ .

View File

@ -25,7 +25,7 @@ django-compressor==2.0
django-debug-toolbar==1.4
python-dotenv==0.10.3
django-extensions==1.6.7
django-filer==2.1.2
django-filer==1.2.0
django-filter==0.13.0
django-formtools==1.0
django-guardian==1.4.4