forked from python-pillow/docker-images
/
Dockerfile
42 lines (35 loc) · 1.13 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# This is a sample Dockerfile to build Pillow on Arch Linux
# with all/most of the dependencies working.
FROM greyltc/archlinux
RUN pacman -Syu --noconfirm \
wget
RUN pacman -Sy --noconfirm \
python \
python-virtualenv \
gcc make git sudo \
python-setuptools \
extra/libjpeg-turbo \
extra/openjpeg2 \
extra/libtiff \
extra/lcms2 \
extra/libwebp \
extra/freetype2 \
extra/tk \
libffi \
mesa-libgl \
xorg-server-xvfb \
ghostscript \
python-pyqt5 \
pkg-config \
extra/fribidi \
extra/harfbuzz
ADD depends /depends
RUN cd /depends && ./install_imagequant.sh && ./install_raqm.sh
RUN /sbin/useradd -m -U -u 1000 pillow && \
virtualenv --system-site-packages /vpy3 && \
/vpy3/bin/pip install --upgrade pip && \
/vpy3/bin/pip install nose cffi olefile pytest pytest-cov && \
/vpy3/bin/pip install numpy --only-binary=:all: || true && \
chown -R pillow:pillow /vpy3
USER pillow
CMD ["depends/test.sh"]