-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
41 lines (33 loc) · 1.1 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
41
FROM python:3.6.9-buster
RUN apt-get update && \
apt-get install -y unattended-upgrades
RUN set -ex; \
\
wget -O get-pip.py 'https://bootstrap.pypa.io/get-pip.py'; \
\
python3 get-pip.py --disable-pip-version-check --no-cache-dir "pip==20.1" \
; \
pip --version; \
\
find /usr/local -depth \
\( \
\( -type d -a \( -name test -o -name tests \) \) \
-o \
\( -type f -a \( -name '*.pyc' -o -name '*.pyo' \) \) \
\) -exec rm -rf '{}' +; \
rm -f get-pip.py
# Install gcloud
RUN echo "deb http://packages.cloud.google.com/apt cloud-sdk main" | tee -a /etc/apt/sources.list.d/google-cloud-sdk.list && \
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add - && \
apt-get update -y && apt-get install google-cloud-sdk vim -y
# Install kubectl
RUN curl -Lo /usr/local/bin/kubectl https://dl.k8s.io/release/v1.19.12/bin/linux/amd64/kubectl && \
chmod a+x /usr/local/bin/kubectl
# Python packages
WORKDIR /app
RUN pip3 install setuptools
COPY requirements.txt requirements.txt
RUN pip3 install -r requirements.txt
# setup dask
RUN mkdir -p /dask
RUN unattended-upgrade