2020-09-20 12:35:08 +00:00
|
|
|
FROM freqtradeorg/freqtrade:develop
|
|
|
|
|
2021-05-24 15:01:53 +00:00
|
|
|
USER root
|
2020-09-20 12:35:08 +00:00
|
|
|
# Install dependencies
|
|
|
|
COPY requirements-dev.txt /freqtrade/
|
2021-05-24 15:01:53 +00:00
|
|
|
|
2020-09-20 12:35:08 +00:00
|
|
|
RUN apt-get update \
|
2021-05-24 15:01:53 +00:00
|
|
|
&& apt-get -y install git mercurial sudo vim build-essential \
|
2020-09-20 12:35:08 +00:00
|
|
|
&& apt-get clean \
|
|
|
|
&& mkdir -p /home/ftuser/.vscode-server /home/ftuser/.vscode-server-insiders /home/ftuser/commandhistory \
|
|
|
|
&& echo "export PROMPT_COMMAND='history -a'" >> /home/ftuser/.bashrc \
|
2021-05-24 15:01:53 +00:00
|
|
|
&& echo "export HISTFILE=~/commandhistory/.bash_hi>story" >> /home/ftuser/.bashrc \
|
2021-01-18 07:46:19 +00:00
|
|
|
&& chown ftuser:ftuser -R /home/ftuser/.local/ \
|
2020-09-20 12:35:08 +00:00
|
|
|
&& chown ftuser: -R /home/ftuser/
|
|
|
|
|
|
|
|
USER ftuser
|
|
|
|
|
2021-05-24 15:01:53 +00:00
|
|
|
RUN pip install --user autopep8 -r docs/requirements-docs.txt -r requirements-dev.txt --no-cache-dir
|
|
|
|
|
2020-09-20 12:35:08 +00:00
|
|
|
# Empty the ENTRYPOINT to allow all commands
|
|
|
|
ENTRYPOINT []
|