dynamicweb/Dockerfile

25 lines
577 B
Text
Raw Normal View History

FROM python:3.12-alpine3.20
2021-12-17 22:02:20 +01:00
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 \
2021-12-17 22:02:20 +01:00
&& rm -rf /var/cache/apk/*
COPY requirements.txt ./
2024-02-19 20:49:29 +05:30
# 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"
2021-12-17 22:02:20 +01:00
COPY ./ .
COPY entrypoint.sh /
ENTRYPOINT ["/entrypoint.sh" ]