2024-01-06 08:19:09 +00:00
|
|
|
FROM mcr.microsoft.com/vscode/devcontainers/typescript-node:20-bookworm
|
2020-06-04 09:02:46 +00:00
|
|
|
|
2022-06-13 17:44:46 +00:00
|
|
|
RUN sudo apt-get update \
|
2020-11-09 18:23:49 +00:00
|
|
|
&& sudo apt-get install -y vim \
|
|
|
|
&& sudo apt-get clean
|
2020-06-04 19:15:01 +00:00
|
|
|
|
2021-07-14 07:37:16 +00:00
|
|
|
USER node
|
|
|
|
|
|
|
|
ENV HOME /home/node
|
2020-06-04 09:02:46 +00:00
|
|
|
|
|
|
|
# load ssh key in bash terminal
|
2020-11-09 18:23:49 +00:00
|
|
|
RUN mkdir -p ${HOME}/commandhistory \
|
|
|
|
# && echo "eval \$(ssh-agent) && ssh-add ~/.ssh/id_rsa" >> ${HOME}/.bashrc \
|
|
|
|
# set variable bash history
|
|
|
|
&& echo "export PROMPT_COMMAND='history -a'" >> ${HOME}/.bashrc \
|
|
|
|
&& echo "export HISTFILE=~/commandhistory/.bash_history" >> ${HOME}/.bashrc
|
2020-06-04 09:02:46 +00:00
|
|
|
|
2022-02-05 19:13:18 +00:00
|
|
|
EXPOSE 3000
|