forked from danpaquin/coinbasepro-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request danpaquin#248 from cabinnets/docker1
Add Dockerfile
- Loading branch information
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |