forked from p-zombie/freqtrade
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
31 lines (23 loc) · 1.14 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
# syntax = docker/dockerfile:experimental
FROM freqtradeorg/freqtrade:stable
ENV PYTHONWARNINGS="ignore"
ENV PIP_CACHE_DIR="/home/ftuser/.cache"
ENV PYTHONUSERBASE="/home/ftuser/.local"
USER root
RUN curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
RUN apt-get update && apt-get -y upgrade
RUN apt-get -y install gettext-base nodejs cmake libopenmpi-dev zlib1g-dev libtinfo5
RUN --mount=type=cache,mode=0755,target=/home/ftuser/.cache pip install jupyterlab ipywidgets>=7.5 matplotlib
RUN jupyter labextension install jupyterlab-plotly
RUN jupyter labextension install @jupyter-widgets/jupyterlab-manager plotlywidget
COPY requirements.txt /freqtrade/requirements.txt
RUN --mount=type=cache,mode=0755,target=/home/ftuser/.cache pip install -r /freqtrade/requirements.txt
COPY requirements-rl.txt /freqtrade/requirements-rl.txt
RUN --mount=type=cache,mode=0755,target=/home/ftuser/.cache pip install -r /freqtrade/requirements-rl.txt
COPY load_env.sh /freqtrade/load_env.sh
COPY Procfile /freqtrade/Procfile
COPY user_data /freqtrade/user_data
RUN chown -R ftuser:ftuser /freqtrade
RUN chmod 755 /freqtrade
USER ftuser
ENTRYPOINT ["./load_env.sh"]