1# Copyright 2020 Google LLC 2# 3# Licensed under the Apache License, Version 2.0 (the "License"); 4# you may not use this file except in compliance with the License. 5# You may obtain a copy of the License at 6# 7# http://www.apache.org/licenses/LICENSE-2.0 8# 9# Unless required by applicable law or agreed to in writing, software 10# distributed under the License is distributed on an "AS IS" BASIS, 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12# See the License for the specific language governing permissions and 13# limitations under the License. 14# 15################################################################################ 16# Docker image for running fuzzers on CIFuzz (the run_fuzzers action on GitHub 17# actions). 18 19FROM gcr.io/oss-fuzz-base/cifuzz-base 20 21# Python file to execute when the docker container starts up. 22# We can't use the env var $OSS_FUZZ_ROOT here. Since it's a constant env var, 23# just expand to '/opt/oss-fuzz'. 24ENTRYPOINT ["python3", "/opt/oss-fuzz/infra/cifuzz/run_fuzzers_entrypoint.py"] 25 26WORKDIR ${OSS_FUZZ_ROOT}/infra 27 28# Copy infra source code. 29ADD . ${OSS_FUZZ_ROOT}/infra 30 31RUN python3 -m pip install -r ${OSS_FUZZ_ROOT}/infra/cifuzz/requirements.txt 32