FROM codercom/code-server:latest USER root RUN chmod -R 777 /usr/local/bin/fixuid && \ chown root:root /usr/local/bin/fixuid && \ chmod u+s /usr/local/bin/fixuid RUN set -x && \ apt-get update && \ apt-get upgrade -y && \ apt autoremove && \ apt-get install -y python3 cron nginx jq sshpass rclone zip unzip libatomic1 && \ # git curl wget tzdata perl openssl openssh-client procps apt-get clean && \ ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \ echo "Asia/Shanghai" >/etc/timezone && \ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bash && \ source ~/.bashrc && \ export NVM_DIR="$HOME/.nvm" && \ [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" && \ [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" && \ echo "nvm reloaded" && \ nvm install node -g && \ npm install -g nodemon ts-node && \ node -v COPY entrypoint.sh /home/coder RUN chmod +x /home/coder/entrypoint.sh # RUN ls /home/coder # ENTRYPOINT ["entrypoint.sh"] # EXPOSE 8080