forked from python-pillow/docker-images
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
29 lines (23 loc) · 1.05 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
FROM ubuntu:xenial
RUN apt-get -qq update && DEBIAN_FRONTEND=noninteractive apt-get -y \
install sudo xvfb \
git wget virtualenv python3-numpy python3-scipy netpbm \
python3-pyqt5 ghostscript libffi-dev libjpeg-turbo-progs \
python3-setuptools \
python3-dev cmake \
libtiff5-dev libjpeg8-dev libopenjp2-7-dev zlib1g-dev \
libfreetype6-dev liblcms2-dev libwebp-dev tcl8.6-dev tk8.6-dev \
python3-tk \
libharfbuzz-dev libfribidi-dev && apt-get clean
RUN useradd pillow && addgroup pillow sudo && \
mkdir /home/pillow && chown pillow:pillow /home/pillow
RUN virtualenv -p /usr/bin/python3.5 --system-site-packages /vpy3 && \
/vpy3/bin/pip install --upgrade pip && \
/vpy3/bin/pip install cffi olefile pytest pytest-cov && \
/vpy3/bin/pip install numpy --only-binary=:all: || true && \
chown -R pillow:pillow /vpy3
ADD depends /depends
RUN cd /depends && ./install_imagequant.sh && ./install_raqm.sh
USER pillow
CMD ["depends/test.sh"]
#docker run -v $TRAVIS_BUILD_DIR:/Pillow pythonpillow/ubuntu-16.04-xenial-amd64