| 1 | FROM freqtradeorg/freqtrade:develop |
| 2 | |
| 3 | # Install dependencies |
| 4 | COPY requirements-dev.txt /freqtrade/ |
| 5 | RUN apt-get update \ |
| 6 | && apt-get -y install git mercurial sudo vim \ |
| 7 | && apt-get clean \ |
| 8 | && pip install autopep8 -r docs/requirements-docs.txt -r requirements-dev.txt --no-cache-dir \ |
| 9 | && useradd -u 1000 -U -m ftuser \ |
| 10 | && mkdir -p /home/ftuser/.vscode-server /home/ftuser/.vscode-server-insiders /home/ftuser/commandhistory \ |
| 11 | && echo "export PROMPT_COMMAND='history -a'" >> /home/ftuser/.bashrc \ |
| 12 | && echo "export HISTFILE=~/commandhistory/.bash_history" >> /home/ftuser/.bashrc \ |
| 13 | && mv /root/.local /home/ftuser/.local/ \ |
| 14 | && chown ftuser:ftuser -R /home/ftuser/.local/ \ |
| 15 | && chown ftuser: -R /home/ftuser/ |
| 16 | |
| 17 | USER ftuser |
| 18 | |
| 19 | # Empty the ENTRYPOINT to allow all commands |
| 20 | ENTRYPOINT [] |