forked from googleads/google-ads-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
40 lines (38 loc) · 1.48 KB
/
Dockerfile
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
ARG image_name=ubuntu:20.04
FROM ${image_name}
ARG DEBIAN_FRONTEND=noninteractive
ENV TZ=Etc/GMT
COPY . /google-ads-python
RUN apt-get update -qy && \
apt-get install -qy --no-install-recommends \
ca-certificates \
curl \
gnupg2 && \
. /etc/os-release && \
echo "deb http://ppa.launchpad.net/deadsnakes/ppa/ubuntu ${UBUNTU_CODENAME} main" > /etc/apt/sources.list.d/deadsnakes.list && \
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F23C5A6CF475977595C89F51BA6932366A755776 && \
apt-get update -qy && \
apt-get install -qy --no-install-recommends \
git \
openssh-client \
python3.8 \
python3.8-distutils \
python3.9 \
python3.10 \
python3.11 \
python3.12 && \
curl -fsSo /tmp/get-pip.py https://bootstrap.pypa.io/get-pip.py && \
python3.8 /tmp/get-pip.py && \
python3.8 -m pip install --no-cache-dir --upgrade pip && \
python3.9 /tmp/get-pip.py && \
python3.9 -m pip install --no-cache-dir --upgrade pip && \
python3.10 /tmp/get-pip.py && \
python3.10 -m pip install --no-cache-dir --upgrade pip && \
python3.11 /tmp/get-pip.py && \
python3.11 -m pip install --no-cache-dir --upgrade pip && \
python3.12 /tmp/get-pip.py && \
python3.12 -m pip install --no-cache-dir --upgrade pip && \
rm /tmp/get-pip.py && \
python3 -m pip install --no-cache-dir "nox>=2020.12.31,<2022.6" && \
rm -rf /var/cache/apt/lists
WORKDIR "/google-ads-python"