Use devcontainer features for most setup work

This commit is contained in:
Matthias
2024-04-27 11:55:37 +00:00
parent ad370cbbcd
commit bd608bedf0
3 changed files with 7 additions and 11 deletions

View File

@@ -7,16 +7,9 @@ COPY requirements-dev.txt /freqtrade/
ARG USERNAME=ftuser
RUN apt-get update \
&& apt-get -y install --no-install-recommends apt-utils dialog \
&& apt-get -y install --no-install-recommends git sudo ssh vim build-essential \
&& apt-get -y install --no-install-recommends apt-utils dialog git ssh vim build-essential zsh \
&& apt-get clean \
&& 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}/