| FROM ubuntu:24.04 |
|
|
| ENV DEBIAN_FRONTEND=noninteractive |
|
|
| |
| |
| |
| |
| RUN apt-get update && apt-get install -y software-properties-common \ |
| && add-apt-repository -y ppa:apt-fast/stable \ |
| && apt-get update \ |
| && DEBIAN_FRONTEND=noninteractive \ |
| apt-get -y install apt-fast \ |
| && echo "DOWNLOADBEFORE=true" | tee -a /etc/apt-fast.conf \ |
| && echo "MAXNUM=50" | tee -a /etc/apt-fast.conf \ |
| && echo "USE_PIGZ=1" | tee -a /etc/apt-fast.conf \ |
| && echo "APTFAST_PARA_OPTS=(--max-connection-per-server=12 --split=5)" | tee -a /etc/apt-fast.conf |
|
|
| |
| |
| RUN apt-fast update && apt-fast install -y \ |
| curl wget git git-lfs unzip sudo nano bash apt-fast \ |
| software-properties-common ca-certificates gnupg \ |
| build-essential g++ gfortran \ |
| cmake ninja-build pkg-config \ |
| llvm clang lld lldb \ |
| valgrind gdb strace ltrace \ |
| htop tree jq sqlite3 \ |
| net-tools iputils-ping \ |
| rsync git-extras pigz \ |
| fzf silversearcher-ag ripgrep mingw-w64 \ |
| python3.12 python3.12-dev python3-pip |
|
|
| |
| RUN git lfs install |
|
|
| |
| RUN apt-fast remove -y python3-wheel python3-setuptools |
|
|
| |
| RUN curl -sS https://bootstrap.pypa.io/get-pip.py -o /tmp/get-pip.py \ |
| && python3.12 /tmp/get-pip.py --break-system-packages \ |
| && rm /tmp/get-pip.py |
|
|
| |
| RUN pip config set global.break-system-packages true |
|
|
| |
| RUN python3.12 -m pip install --upgrade pip setuptools wheel |
|
|
| |
| |
| |
| RUN curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain stable --no-modify-path \ |
| && mv /root/.cargo /usr/local/cargo \ |
| && mv /root/.rustup /usr/local/rustup \ |
| && ln -s /usr/local/cargo/bin/* /usr/local/bin/ \ |
| && rm -rf /root/.cargo /root/.rustup |
| ENV RUSTUP_HOME=/usr/local/rustup |
| ENV CARGO_HOME=/usr/local/cargo |
|
|
| |
| |
| |
| RUN curl -LO https://go.dev/dl/go1.23.0.linux-amd64.tar.gz \ |
| && tar -C /usr/local -xzf go1.23.0.linux-amd64.tar.gz \ |
| && rm go1.23.0.linux-amd64.tar.gz |
| |
| |
| |
| |
| RUN apt-fast install -y openjdk-17-jdk |
|
|
| |
| |
| |
| RUN apt-fast install -y php-cli unzip \ |
| && curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer |
|
|
| |
| |
| |
| RUN apt-fast install -y ruby-full |
|
|
| |
| |
| |
| RUN apt-fast install -y ghc cabal-install |
|
|
| |
| |
| |
| RUN JULIA_VERSION=1.11.3 \ |
| && wget https://julialang-s3.julialang.org/bin/linux/x64/1.11/julia-$JULIA_VERSION-linux-x86_64.tar.gz \ |
| && tar -xzf julia-$JULIA_VERSION-linux-x86_64.tar.gz -C /opt/ \ |
| && ln -s /opt/julia-$JULIA_VERSION/bin/julia /usr/local/bin/julia \ |
| && rm julia-$JULIA_VERSION-linux-x86_64.tar.gz |
|
|
| |
| |
| |
| |
| RUN apt-fast install -y curl gnupg software-properties-common apt-transport-https |
|
|
| |
| RUN curl -sL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x99E82A75642AC823" | gpg --dearmor | tee /usr/share/keyrings/sbt.gpg > /dev/null \ |
| && echo "deb [signed-by=/usr/share/keyrings/sbt.gpg] https://repo.scala-sbt.org/scalasbt/debian all main" | tee /etc/apt/sources.list.d/sbt.list \ |
| && echo "deb [signed-by=/usr/share/keyrings/sbt.gpg] https://repo.scala-sbt.org/scalasbt/debian /" | tee -a /etc/apt/sources.list.d/sbt.list |
|
|
| |
| RUN apt-fast update && apt-fast install -y scala sbt |
|
|
| |
| |
| |
| RUN curl -fsSL https://code-server.dev/install.sh | sh |
|
|
| |
| |
| |
| WORKDIR /home/vscode |
| RUN mkdir -p /home/vscode/workspace |
| COPY app.py /app.py |
| COPY backup.py /home/backup.py |
| RUN chmod -R 777 /home |
|
|
| |
| |
| |
| |
| RUN pip install --upgrade pip setuptools wheel \ |
| && pip install black flake8 mypy jupyterlab ipython notebook |
|
|
| |
| RUN pip install huggingface_hub huggingface_hub[cli] hf_xet hf_transfer |
| ENV HF_HUB_ENABLE_HF_TRANSFER=1 |
|
|
| |
| RUN pip install torch torchao torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu |
| RUN pip install numpy scipy pandas matplotlib seaborn scikit-learn \ |
| jupyter jupyterlab \ |
| torch torchvision torchaudio \ |
| tensorflow keras \ |
| datasets transformers accelerate |
|
|
| |
| RUN apt-fast update && apt-fast install -y locales \ |
| && locale-gen en_US.UTF-8 \ |
| && update-locale LANG=en_US.UTF-8 |
| ENV LANG=en_US.UTF-8 |
| ENV LANGUAGE=en_US:en |
| ENV LC_ALL=en_US.UTF-8 |
|
|
| |
| RUN apt-fast install -y \ |
| mysql-client \ |
| postgresql-client \ |
| redis-tools \ |
| gnupg wget ca-certificates |
|
|
| |
| RUN wget -qO - https://www.mongodb.org/static/pgp/server-7.0.asc | gpg --dearmor -o /usr/share/keyrings/mongodb.gpg \ |
| && echo "deb [signed-by=/usr/share/keyrings/mongodb.gpg] https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/7.0 multiverse" \ |
| | tee /etc/apt/sources.list.d/mongodb-org-7.0.list \ |
| && apt-fast update && apt-fast install -y mongodb-database-tools |
|
|
| |
| RUN apt-fast install -y \ |
| autoconf automake libtool m4 \ |
| ninja-build \ |
| nasm yasm \ |
| graphviz doxygen |
|
|
| |
| RUN apt-fast install -y \ |
| tmux screen neovim \ |
| httpie \ |
| shellcheck \ |
| man-db manpages-dev |
|
|
| |
| RUN apt-fast clean |
| RUN pip cache purge |
|
|
| |
| |
| |
| RUN echo '\ |
| unset HISTFILE\n\ |
| export HISTSIZE=0\n\ |
| export HISTFILESIZE=0\n\ |
| export HISTCONTROL=ignoreboth\n\ |
| export PROMPT_COMMAND="history -r /dev/null"\n\ |
| ' >> /etc/profile && \ |
| echo '\ |
| unset HISTFILE\n\ |
| export HISTSIZE=0\n\ |
| export HISTFILESIZE=0\n\ |
| export HISTCONTROL=ignoreboth\n\ |
| export PROMPT_COMMAND="history -r /dev/null"\n\ |
| ' >> /etc/bash.bashrc && \ |
| rm -f /root/.bash_history && \ |
| mkdir -p /etc/skel && \ |
| echo '\ |
| unset HISTFILE\n\ |
| export HISTSIZE=0\n\ |
| export HISTFILESIZE=0\n\ |
| export HISTCONTROL=ignoreboth\n\ |
| export PROMPT_COMMAND="history -r /dev/null"\n\ |
| ' >> /etc/skel/.bashrc |
|
|
|
|
| |
| |
| |
| RUN useradd -ms /bin/bash vscode \ |
| && echo "vscode:vscode" | chpasswd \ |
| && usermod -aG sudo vscode \ |
| && echo "vscode ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/90-vscode \ |
| && chmod 440 /etc/sudoers.d/90-vscode \ |
| && mkdir -p /home/vscode/.ssh \ |
| && chown -R vscode:vscode /home/vscode |
|
|
| USER vscode |
| ENV PATH=/usr/local/go/bin:/usr/local/cargo/bin:/home/vscode/.local/bin:$PATH |
|
|
| |
| |
| |
| RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash |
| RUN echo 'export NVM_DIR="$HOME/.nvm"' >> ~/.bashrc \ |
| && echo '[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"' >> ~/.bashrc \ |
| && echo '[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"' >> ~/.bashrc |
|
|
| |
| |
| |
| EXPOSE 7860 |
|
|
| CMD /bin/bash -c "code-server --bind-addr 0.0.0.0:7860 --auth password /home/vscode/workspace" |