Update .devcontainer/Dockerfile

This commit is contained in:
2025-01-30 13:28:42 +01:00
parent eee9e7fcac
commit 6ad0a5ae00

View File

@@ -14,13 +14,13 @@ RUN . /etc/os-release \
&& if [ "$(dpkg --print-architecture)" = "amd64" ]; then apt-get install -y mongodb-database-tools; fi \ && if [ "$(dpkg --print-architecture)" = "amd64" ]; then apt-get install -y mongodb-database-tools; fi \
&& apt-get clean -y && rm -rf /var/lib/apt/lists/* && apt-get clean -y && rm -rf /var/lib/apt/lists/*
ARG USERNAME=node # ARG USERNAME=node
RUN SNIPPET="export PROMPT_COMMAND='history -a' && export HISTFILE=/commandhistory/.bash_history" \ # RUN SNIPPET="export PROMPT_COMMAND='history -a' && export HISTFILE=/commandhistory/.bash_history" \
&& mkdir /commandhistory \ # && mkdir /commandhistory \
&& touch /commandhistory/.bash_history \ # && touch /commandhistory/.bash_history \
&& chown -R $USERNAME /commandhistory \ # && chown -R $USERNAME /commandhistory \
&& echo "$SNIPPET" >> "/home/$USERNAME/.bashrc" # && echo "$SNIPPET" >> "/home/$USERNAME/.bashrc"
# RUN rm -rf /home/node/.bash_history && touch /home/node/.bash_history && chown node:node /home/node/.bash_history # RUN rm -rf /home/node/.bash_history && touch /home/node/.bash_history && chown node:node /home/node/.bash_history