• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
17# Don't bother with a slimmer base image.
18# When we pull base-builder to build project builder image we need to pull
19# ubuntu:16.04 anyway. So in the long run we probably would waste time if
20# we pulled something like alpine here instead.
21FROM ubuntu:16.04
22
23RUN apt-get update && \
24    apt-get install ca-certificates wget python3 git-core --no-install-recommends -y && \
25    wget https://download.docker.com/linux/ubuntu/dists/xenial/pool/stable/amd64/docker-ce-cli_20.10.5~3-0~ubuntu-xenial_amd64.deb -O /tmp/docker-ce.deb && \
26    dpkg -i /tmp/docker-ce.deb && rm /tmp/docker-ce.deb && \
27    apt-get remove wget -y --purge
28
29
30ENV OSS_FUZZ_ROOT=/opt/oss-fuzz
31ADD . ${OSS_FUZZ_ROOT}
32RUN rm -rf ${OSS_FUZZ_ROOT}/infra