-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathDockerfile
28 lines (22 loc) · 1.01 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
FROM ubuntu:16.04
RUN mkdir -p /opt/project
WORKDIR /opt/project
# Prepare dependencies
RUN apt-get update && \
apt-get install -y apt-transport-https ca-certificates unzip curl libcurl3 wget
# Install APT dependencies
RUN apt-get -y update && \
apt-get -y install python python-setuptools python-dev build-essential git
# Install google cloud
RUN curl -sSL https://sdk.cloud.google.com | bash && \
/root/google-cloud-sdk/bin/gcloud config set --installation component_manager/disable_update_check true && \
/root/google-cloud-sdk/bin/gcloud components install beta
ENV PATH $PATH:/root/google-cloud-sdk/bin
# Install python dependencies
RUN easy_install pip && \
pip install --upgrade pip
RUN pip install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.2.0-cp27-none-linux_x86_64.whl && \
pip install google-api-python-client pyyaml pytz newlinejson python-dateutil yattag pandas-gbq && \
pip install git+https://github.com/GlobalFishingWatch/bqtools.git
COPY . /opt/project
RUN pip install .