24 lines
764 B
Text
24 lines
764 B
Text
|
|
FROM mcr.microsoft.com/devcontainers/python:1-3.8-bookworm
|
||
|
|
|
||
|
|
ENV PYTHONUNBUFFERED 1
|
||
|
|
|
||
|
|
# Install additional OS packages.
|
||
|
|
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
|
||
|
|
&& apt-get -y install --no-install-recommends \
|
||
|
|
libffi-dev \
|
||
|
|
libfreetype6-dev \
|
||
|
|
libjpeg-dev \
|
||
|
|
libwebp-dev \
|
||
|
|
libpng-dev \
|
||
|
|
liblcms2-dev \
|
||
|
|
zlib1g-dev \
|
||
|
|
libmemcached-dev \
|
||
|
|
libsasl2-dev \
|
||
|
|
inkscape \
|
||
|
|
xmlsec1
|
||
|
|
|
||
|
|
# Install our requirements now, as they rarely change.
|
||
|
|
COPY constraints.txt requirements.txt /tmp/pip-tmp/
|
||
|
|
RUN pip3 install -U pip \
|
||
|
|
&& pip3 --disable-pip-version-check --no-cache-dir install -r /tmp/pip-tmp/requirements.txt -c /tmp/pip-tmp/constraints.txt \
|
||
|
|
&& rm -rf /tmp/pip-tmp
|