-
Notifications
You must be signed in to change notification settings - Fork 119
/
Dockerfile.cloudbuild-agent
38 lines (31 loc) · 1.36 KB
/
Dockerfile.cloudbuild-agent
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
# TODO(dongge): Automatically build and push this to registry daily:
# us-central1-docker.pkg.dev/oss-fuzz/oss-fuzz-gen/agent-image
FROM ubuntu:22.04
ENV DEBIAN_FRONTEND=noninteractive
# Install Python 3.11 and pip
RUN apt-get update && \
apt-get install -y software-properties-common curl && \
add-apt-repository ppa:deadsnakes/ppa && \
apt-get update && \
apt-get install -y python3.11 python3.11-dev python3.11-venv \
python3.11-distutils && \
curl -sS https://bootstrap.pypa.io/get-pip.py | python3.11
# Install Docker
RUN apt-get install -y ca-certificates gnupg lsb-release && \
mkdir -p /etc/apt/keyrings && \
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | \
gpg --dearmor -o /etc/apt/keyrings/docker.gpg && \
echo "deb [arch=$(dpkg --print-architecture) \
signed-by=/etc/apt/keyrings/docker.gpg] \
https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | \
tee /etc/apt/sources.list.d/docker.list > /dev/null && \
apt-get update && \
apt-get install -y docker-ce docker-ce-cli containerd.io \
docker-buildx-plugin docker-compose-plugin
ENV DEBIAN_FRONTEND=dialog
# Set the working directory
WORKDIR /workspace/ofg
# Copy the requirements file
COPY requirements.txt /workspace/ofg/
# Install Python dependencies
RUN pip3.11 install --ignore-installed -r /workspace/ofg/requirements.txt