forked from hummingbot/hummingbot
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile.arm
62 lines (51 loc) · 1.61 KB
/
Dockerfile.arm
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
FROM arm64v8/python:3.7.8-slim-buster
LABEL maintainer="CoinAlpha, Inc. <[email protected]>"
# Build arguments
ARG BRANCH=""
ARG COMMIT=""
ARG BUILD_DATE=""
LABEL branch=${BRANCH}
LABEL commit=${COMMIT}
LABEL date=${BUILD_DATE}
# Set ENV variables
ENV COMMIT_SHA=${COMMIT}
ENV COMMIT_BRANCH=${BRANCH}
ENV BUILD_DATE=${DATE}
ENV STRATEGY=${STRATEGY}
ENV CONFIG_FILE_NAME=${CONFIG_FILE_NAME}
ENV WALLET=${WALLET}
ENV CONFIG_PASSWORD=${CONFIG_PASSWORD}
# Create mount points
RUN mkdir /conf /logs /data /scripts /certs
VOLUME /conf /logs /data /scripts /certs
# Copy files
COPY bin/ bin/
COPY hummingbot/ hummingbot/
COPY setup/requirements-arm.txt setup/
COPY setup.py .
COPY LICENSE .
COPY README.md .
COPY DATA_COLLECTION.md .
COPY scripts/ scripts/
# Install linux dependencies
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y gcc \
build-essential pkg-config libusb-1.0 curl git \
sudo \
# pip install cryptography dependencies
libssl-dev libffi-dev && \
rm -rf /var/lib/apt/lists/*
# Install node and celocli
RUN apt-get update && \
curl -sL https://deb.nodesource.com/setup_10.x | bash && \
apt-get install -y nodejs libusb-1.0-0-dev libudev-dev && \
npm install --only=production -g --unsafe-perm @celo/[email protected] && \
npm cache clean --force && \
rm -rf /var/lib/apt/lists/*
RUN pip install -r setup/requirements-arm.txt
# ./compile + cleanup build folder
RUN python setup.py build_ext --inplace -j 8 && \
rm -rf build/ && \
find . -type f -name "*.cpp" -delete
SHELL [ "/bin/bash", "-lc" ]
CMD python bin/hummingbot_quickstart.py