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