FROM gitpod/openvscode-server:latest USER root # RUN apt-get update -y && apt-get upgrade -y && apt-get install -y sudo && apt-get install -y python3-pip && pip3 install --upgrade pip # RUN apt-get install -y curl gnupg wget htop sudo git git-lfs software-properties-common build-essential libgl1 zip unzip # RUN add-apt-repository ppa:flexiondotorg/nvtop # RUN apt-get upgrade -y # RUN apt-get install -y nvtop # RUN pip3 install pandas scipy matplotlib && \ # pip3 install ipywidgets && \ # pip3 install torch torchvision torchaudio # RUN apt-get update && apt-get install -y \ # curl \ # git \ # nodejs \ # npm \ # && rm -rf /var/lib/apt/lists/* RUN apt-get update && apt-get install -y curl gnupg2 lsb-release && \ curl -fsSL https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - && \ apt-key fingerprint 1655A0AB68576280 && \ export VERSION=node_16.x && \ export DISTRO="$(lsb_release -s -c)" && \ echo "deb https://deb.nodesource.com/$VERSION $DISTRO main" | tee /etc/apt/sources.list.d/nodesource.list && \ echo "deb-src https://deb.nodesource.com/$VERSION $DISTRO main" | tee -a /etc/apt/sources.list.d/nodesource.list && \ apt-get update && apt-get install -y nodejs && \ node -v && npm -v && \ npm install -g yarn && \ yarn -v && \ apt-get clean && \ rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* RUN npm i -g n8n RUN npm install -g pm2 # Speed test cli RUN curl -s https://packagecloud.io/install/repositories/ookla/speedtest-cli/script.deb.sh | sudo bash RUN sudo apt-get install speedtest # Install chrome RUN wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb RUN apt-get install -y ./google-chrome-stable_current_amd64.deb ENV OPENVSCODE_SERVER_ROOT="/home/.openvscode-server" ENV OPENVSCODE="${OPENVSCODE_SERVER_ROOT}/bin/openvscode-server" USER openvscode-server RUN ${OPENVSCODE} --install-extension njzy.stats-bar RUN ${OPENVSCODE} --install-extension cweijan.vscode-ssh RUN ${OPENVSCODE} --install-extension humao.rest-client RUN ${OPENVSCODE} --install-extension ms-vscode.live-server RUN ${OPENVSCODE} --install-extension auchenberg.vscode-browser-preview EXPOSE 7860 ENTRYPOINT [ "/bin/sh", "-c", "exec ${OPENVSCODE_SERVER_ROOT}/bin/openvscode-server --host 0.0.0.0 --port 7860 --without-connection-token \"${@}\"", "--" ]