Spaces:
Running
Running
File size: 1,372 Bytes
d3452fe 9ace976 60c7e56 d821d69 4d08eff e86fb58 93e40ac e7b24cd 93e40ac 60c7e56 fd915f9 93e40ac b4a15d6 fd915f9 93e40ac f517c05 93e40ac 93f8dc4 7c33b6a 60c7e56 0e86865 d79effe 0e86865 60c7e56 e86fb58 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
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 |