2023-06-05 18:30:46 +00:00
|
|
|
FROM freqtradeorg/freqtrade:develop_freqairl
|
2020-09-20 12:35:08 +00:00
|
|
|
|
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
|
|
|
|
2024-04-27 09:29:24 +00:00
|
|
|
ARG USERNAME=ftuser
|
|
|
|
|
2020-09-20 12:35:08 +00:00
|
|
|
RUN apt-get update \
|
2023-06-05 18:30:46 +00:00
|
|
|
&& apt-get -y install --no-install-recommends apt-utils dialog \
|
2024-04-27 09:29:24 +00:00
|
|
|
&& apt-get -y install --no-install-recommends git sudo ssh vim build-essential \
|
2020-09-20 12:35:08 +00:00
|
|
|
&& apt-get clean \
|
2024-04-27 09:29:24 +00:00
|
|
|
&& mkdir -p /home/${USERNAME}/.vscode-server /home/${USERNAME}/.vscode-server-insiders /home/${USERNAME}/commandhistory \
|
|
|
|
# Add user to Suders
|
|
|
|
&& echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME \
|
|
|
|
&& chmod 0440 /etc/sudoers.d/$USERNAME \
|
|
|
|
# keep command history
|
|
|
|
&& echo "export PROMPT_COMMAND='history -a'" >> /home/${USERNAME}/.bashrc \
|
|
|
|
&& echo "export HISTFILE=~/commandhistory/.bash_history" >> /home/${USERNAME}/.bashrc \
|
|
|
|
&& chown ${USERNAME}:${USERNAME} -R /home/${USERNAME}/.local/ \
|
|
|
|
&& chown ${USERNAME}: -R /home/${USERNAME}/
|
2020-09-20 12:35:08 +00:00
|
|
|
|
|
|
|
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 []
|