forked from python-pillow/docker-images
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
61 lines (52 loc) · 1.32 KB
/
Copy pathDockerfile
File metadata and controls
61 lines (52 loc) · 1.32 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
FROM ubuntu:jammy
RUN apt-get -qq update \
&& DEBIAN_FRONTEND=noninteractive apt-get -y --no-install-recommends install \
cmake \
g++ \
ghostscript \
git \
libfreetype6-dev \
libfribidi-dev \
libharfbuzz-dev \
libimagequant-dev \
libjpeg-turbo8-dev \
liblcms2-dev \
libopenjp2-7-dev \
libssl-dev \
libtiff5-dev \
libwebp-dev \
meson \
nasm \
netpbm \
python3.10-dbg \
python3-dev \
python3-numpy \
python3-setuptools \
python3-tk \
sudo \
tcl8.6-dev \
tk8.6-dev \
virtualenv \
wget \
xvfb \
zlib1g-dev \
valgrind \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
RUN useradd --uid 1001 pillow \
&& addgroup pillow sudo \
&& mkdir /home/pillow \
&& chown pillow:pillow /home/pillow
ARG PIP_DISABLE_PIP_VERSION_CHECK=1
ARG PIP_NO_CACHE_DIR=1
RUN virtualenv -p /usr/bin/python3.10-dbg --system-site-packages /vpy3 \
&& /vpy3/bin/pip install --upgrade pip \
&& /vpy3/bin/pip install olefile pytest pytest-cov pytest-timeout pytest-valgrind \
&& chown -R pillow:pillow /vpy3
COPY depends /depends
RUN cd /depends \
&& ./install_raqm.sh
COPY python.supp /depends
ENV FORCE_COLOR=1
USER pillow
CMD ["depends/test.sh"]
#docker run -v $TRAVIS_BUILD_DIR:/Pillow pythonpillow/ubuntu-22.04-jammy-amd64