dynamicweb/Dockerfile
Sajeyks 88098f5b25 Use Redis for the cache instead of memcached
CACHE_URL (default redis://redis:6379/1) feeds the built-in RedisCache
backend. Redis is already part of compose for Celery, so this drops
pylibmc, python-memcached and libmemcached-dev.
2026-10-06 19:55:18 +03:00

25 lines
577 B
Docker

FROM python:3.12-alpine3.20
WORKDIR /usr/src/app
RUN apk add --update --no-cache \
git \
build-base \
python3-dev \
libpq-dev \
jpeg-dev \
libxml2-dev \
libxslt-dev \
zlib-dev \
libffi-dev \
&& rm -rf /var/cache/apk/*
COPY 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 ./ .
COPY entrypoint.sh /
ENTRYPOINT ["/entrypoint.sh" ]