forked from hummingbot/hummingbot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
34 lines (26 loc) · 1.04 KB
/
Dockerfile
File metadata and controls
34 lines (26 loc) · 1.04 KB
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
# Set the base image
FROM continuumio/miniconda3:4.6.14
# Dockerfile author / maintainer
LABEL maintainer="CoinAlpha, Inc. <dev@coinalpha.com>"
# Create mount points
RUN mkdir /conf && mkdir /logs
VOLUME /conf /logs
COPY bin/ bin/
COPY hummingbot/ hummingbot/
COPY setup/environment-linux.yml setup/
COPY setup.py .
COPY LICENSE .
COPY README.md .
COPY DATA_COLLECTION.md .
# Install linux dependencies
RUN apt update && \
apt-get update && \
apt-get install -y gcc build-essential
# ./install | create hummingbot environment
RUN conda env create -f setup/environment-linux.yml
# conda activate hummingbot
RUN echo "source activate $(head -1 setup/environment-linux.yml | cut -d' ' -f2)" > ~/.bashrc
ENV PATH /opt/conda/envs/$(head -1 setup/environment-linux.yml | cut -d' ' -f2)/bin:$PATH
# ./compile
RUN /opt/conda/envs/$(head -1 setup/environment-linux.yml | cut -d' ' -f2)/bin/python3 setup.py build_ext --inplace -j 8
CMD [ "sh", "-c", "/opt/conda/envs/$(head -1 setup/environment-linux.yml | cut -d' ' -f2)/bin/python3 bin/hummingbot.py" ]