Library updates -- still fails on installing pillow
This commit is contained in:
parent
b173d7d8a2
commit
8ba6ecadf2
2 changed files with 22 additions and 5 deletions
23
Dockerfile
23
Dockerfile
|
@ -1,6 +1,8 @@
|
|||
FROM python:3.10.0-alpine3.15
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
WORKDIR /app
|
||||
|
||||
COPY . /app/
|
||||
|
||||
RUN apk add --update --no-cache \
|
||||
git \
|
||||
|
@ -8,11 +10,26 @@ RUN apk add --update --no-cache \
|
|||
openldap-dev \
|
||||
python3-dev \
|
||||
libpq-dev \
|
||||
libjpeg \
|
||||
libmemcached-dev \
|
||||
libxml2-dev \
|
||||
libxslt-dev \
|
||||
zlib \
|
||||
jpeg-dev \
|
||||
zlib-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
|
||||
|
||||
COPY requirements.txt ./
|
||||
#RUN LIBRARY_PATH=/lib:/usr/lib /bin/sh -c "pip install --no-cache-dir -r requirements.txt"
|
||||
|
||||
RUN pip install --upgrade pip
|
||||
|
||||
#RUN CFLAGS="-Wno-cpp -Wno-unused-function -Wno-unused-variable -Wno-missing-noreturn -I/usr/include/libxml2" pip install lxml
|
||||
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
COPY ./ .
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"]
|
||||
|
|
|
@ -64,11 +64,11 @@ djangocms-video==1.0.0
|
|||
easy-thumbnails==2.3
|
||||
html5lib==0.9999999
|
||||
ldap3==2.6.1
|
||||
lxml==3.6.0
|
||||
lxml
|
||||
model-mommy==1.2.6
|
||||
phonenumbers==7.4.0
|
||||
phonenumberslite==7.4.0
|
||||
psycopg2==2.7.3.2
|
||||
psycopg2==2.8.4
|
||||
pycryptodome==3.6.6
|
||||
pylibmc==1.5.1
|
||||
python-dateutil==2.5.3
|
||||
|
|
Loading…
Reference in a new issue