forked from danpaquin/coinbasepro-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
39 lines (30 loc) · 1.15 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
# Docker environment for ubuntu, conda, python3.6
#
# Usage:
# * build the image:
# coinbasepro-python$ docker build -t coinbasepro-python .
# * start the image:
# docker run -it coinbasepro-python
# Latest version of ubuntu
FROM ubuntu:16.04
# Install system packages
RUN apt-get update && \
apt-get install -y wget git libhdf5-dev g++ graphviz openmpi-bin libgl1-mesa-glx bzip2
# Install conda
ENV CONDA_DIR /opt/conda
ENV PATH $CONDA_DIR/bin:$PATH
RUN wget --quiet https://repo.continuum.io/miniconda/Miniconda3-4.2.12-Linux-x86_64.sh && \
echo "c59b3dd3cad550ac7596e0d599b91e75d88826db132e4146030ef471bb434e9a *Miniconda3-4.2.12-Linux-x86_64.sh" | sha256sum -c - && \
/bin/bash /Miniconda3-4.2.12-Linux-x86_64.sh -f -b -p $CONDA_DIR && \
rm Miniconda3-4.2.12-Linux-x86_64.sh && \
echo export PATH=$CONDA_DIR/bin:'$PATH' > /etc/profile.d/conda.sh
# Install Python packages
ARG python_version=3.6
RUN conda install -y python=${python_version} && \
pip install --upgrade pip
# Set coinbasepro-python code path
ENV CODE_DIR /code/coinbasepro-python
RUN mkdir -p $CODE_DIR
COPY . $CODE_DIR
RUN cd $CODE_DIR && \
pip install cbpro