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 curl -fsSL https://deb.nodesource.com/setup_22.x | bash - && \ apt-get install -y nodejs && \ 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="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")" && \ # [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" && \ # export NVM_DIR="$HOME/.nvm" && \ # [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" && \ # [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" && \ # nvm install 22 && \ node -v && \ npm install -g nodemon ts-node npm@latest COPY entrypoint.sh /home/coder RUN chmod +x /home/coder/entrypoint.sh # RUN ls /home/coder # ENTRYPOINT ["entrypoint.sh"] # EXPOSE 8080