Skip to content

Commit

Permalink
Merge pull request danpaquin#248 from cabinnets/docker1
Browse files Browse the repository at this point in the history
Add Dockerfile
  • Loading branch information
danpaquin authored Feb 24, 2018
2 parents 031d0fd + a7ca570 commit 866a490
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Docker environment for ubuntu, conda, python3.6
#
# Usage:
# * build the image:
# gdax-python$ docker build -t gdax-python .
# * start the image:
# docker run -it gdax-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 gdax-python code path
ENV CODE_DIR /code/gdax-python

RUN mkdir -p $CODE_DIR
COPY . $CODE_DIR

RUN cd $CODE_DIR && \
pip install gdax

0 comments on commit 866a490

Please sign in to comment.