Dockerfile 640 B

12345678910111213141516
  1. FROM mcr.microsoft.com/devcontainers/rust:1-1-bullseye
  2. RUN apt-get update \
  3. && DEBIAN_FRONTEND=noninteractive apt-get -y install --no-install-recommends \
  4. p7zip-full \
  5. && rm -rf /var/lib/apt/lists/*
  6. ARG USERNAME=vscode
  7. USER $USERNAME
  8. # Save command line history
  9. RUN echo "export HISTFILE=/home/$USERNAME/commandhistory/.bash_history" >> "/home/$USERNAME/.bashrc" \
  10. && echo "export PROMPT_COMMAND='history -a'" >> "/home/$USERNAME/.bashrc" \
  11. && mkdir -p /home/$USERNAME/commandhistory \
  12. && touch /home/$USERNAME/commandhistory/.bash_history \
  13. && chown -R $USERNAME /home/$USERNAME/commandhistory