-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
36 lines (28 loc) · 1.21 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
FROM google/cloud-sdk:295.0.0
# Tell gcloud to save state in /.config so it's easy to override as a mounted volume.
ENV HOME=/
# install python3 to make that also available - modified from https://tecadmin.net/install-python-3-7-on-ubuntu-linuxmint/
RUN apt-get update \
&& apt-get install -y build-essential checkinstall \
&& apt-get install -y libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev \
tk-dev libgdbm-dev libc6-dev libbz2-dev libffi-dev zlib1g-dev liblzma-dev\
&& cd /usr/bin \
&& apt-get install -y wget \
&& wget https://www.python.org/ftp/python/3.7.4/Python-3.7.4.tgz \
&& tar xzf Python-3.7.4.tgz \
&& cd Python-3.7.4 \
&& ./configure --enable-optimizations \
&& make altinstall \
&& update-alternatives --install /usr/bin/python3 python3 /usr/bin/Python-3.7.4/python 1
# install pip3
RUN rm /usr/bin/lsb_release \
&& apt-get update -y \
&& apt-get install python3-pip idle3 -y \
&& python3 -m pip install --no-cache-dir --upgrade pip
# install python packages
# RUN python3 -m pip install gcsfs
COPY scripts /scripts
COPY requirements.txt .
RUN pip3 install -r requirements.txt
ENV PYTHONPATH "/scripts:${PYTHONPATH}"
CMD ["/bin/bash"]