aboutsummaryrefslogtreecommitdiff
path: root/projects/pillow/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'projects/pillow/Dockerfile')
-rw-r--r--projects/pillow/Dockerfile22
1 files changed, 5 insertions, 17 deletions
diff --git a/projects/pillow/Dockerfile b/projects/pillow/Dockerfile
index ab9089553..fc4b30653 100644
--- a/projects/pillow/Dockerfile
+++ b/projects/pillow/Dockerfile
@@ -14,32 +14,20 @@
#
################################################################################
-FROM gcr.io/oss-fuzz-base/base-builder
-RUN git clone --depth 1 https://github.com/google/fuzzing
-RUN cat fuzzing/dictionaries/bmp.dict \
- fuzzing/dictionaries/dds.dict \
- fuzzing/dictionaries/gif.dict \
- fuzzing/dictionaries/icns.dict \
- fuzzing/dictionaries/jpeg.dict \
- fuzzing/dictionaries/jpeg2000.dict \
- fuzzing/dictionaries/pbm.dict \
- fuzzing/dictionaries/png.dict \
- fuzzing/dictionaries/psd.dict \
- fuzzing/dictionaries/tiff.dict \
- fuzzing/dictionaries/webp.dict \
- > $OUT/fuzz_pillow.dict
+FROM gcr.io/oss-fuzz-base/base-builder-python
# library build dependencies
RUN apt-get update && \
apt-get install -y \
libxau-dev \
pkg-config \
- rsync \
- zlib1g-dev
+ rsync
RUN git clone --depth 1 https://github.com/python-pillow/Pillow
RUN git clone --depth 1 https://github.com/python-pillow/pillow-wheels
+RUN $SRC/Pillow/Tests/oss-fuzz/build_dictionaries.sh
+
COPY build_depends.sh $SRC
RUN ln -s /usr/local/bin/python3 /usr/local/bin/python \
@@ -58,6 +46,6 @@ COPY build.sh $SRC/
RUN apt-get install -y \
python3-tk \
tcl8.6-dev \
- tk8.6-dev
+ tk8.6-dev
WORKDIR $SRC/Pillow