Team Ai
Apppublic

sxbith/code

sourceHugging Faceupdated 3y agoView on Hugging Face
0likes
Dockerfile71 linesDownload Raw Back to root
1# Start from the chbboee-server Debian base image2FROM codercom/code-server:4.9.03ARG DEBIAN_FRONTEND=noninteractive4USER coder5ENV HTTPS_ENABLED=false6# Apply VS Code settings7COPY deploy-container/settings.json .local/share/code-server/User/settings.json8 9# Use bash shell10ENV SHELL=/bin/bash11 12# Install unzip + rclone (support for remote filesystem)13RUN sudo apt-get update && sudo apt-get install unzip -y14RUN curl https://rclone.org/install.sh | sudo bash15 16# Copy rclone tasks to /tmp, to potentially be used17COPY deploy-container/rclone-tasks.json /tmp/rclone-tasks.json18 19RUN sudo adduser coder sudo20# Fix permissions for code-server21RUN sudo chown -R coder:coder /home/coder/.local22RUN sudo apt install wget -y23# You can add custom software and dependencies for your environment below24# -----------25 26# Install a VS Code extension:27# Note: we use a different marketplace than VS Code. See https://github.com/cdr/code-server/blob/main/docs/FAQ.md#differences-compared-to-vs-code28RUN code-server --install-extension esbenp.prettier-vscode29RUN code-server --install-extension llvm-vs-code-extensions.vscode-clangd30RUN code-server --install-extension ms-python.python31RUN code-server --install-extension amazonwebservices.aws-toolkit-vscode32# Install apt packages:33#RUN sudo apt-get install -y ubuntu-make34 35# Copy files: 36# COPY deploy-container/myTool /home/coder/myTool37RUN sudo apt-get -y update \38    && sudo apt-get install -y software-properties-common \39    && sudo apt-get -y update \40    && sudo apt update \41    && sudo apt-get install -y python gcc pip snapd hashcat docker.io xz-utils file curl file git unzip xz-utils zip libglu1-mesa clang cmake ninja-build pkg-config libgtk-3-dev \42    && sudo wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb \43    && sudo apt-get install ./google-chrome-stable_current_amd64.deb -y \44    && sudo apt install -y gconf-service libgbm-dev libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget snapd45RUN wget https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.10.6-stable.tar.xz46RUN tar xf flutter_linux_3.10.6-stable.tar.xz47RUN echo 'export PATH="$PATH:~/flutter/bin"' >> /home/coder/.bashrc48RUN sudo apt install apt-transport-https ca-certificates wget dirmngr gnupg software-properties-common -y49RUN wget -qO - https://adoptopenjdk.jfrog.io/adoptopenjdk/api/gpg/key/public | sudo apt-key add -50RUN sudo add-apt-repository --yes https://adoptopenjdk.jfrog.io/adoptopenjdk/deb/51RUN sudo apt update52RUN sudo apt install adoptopenjdk-8-hotspot -y53RUN java -version54RUN cat >> ~/.bashrc55RUN export JAVA_HOME=/usr/lib/jvm/adoptopenjdk-8-hotspot-amd64/56RUN echo $JAVA_HOME57RUN sudo mkdir Android58RUN sudo mkdir Android/Sdk59RUN wget https://dl.google.com/android/repository/commandlinetools-linux-9477386_latest.zip && unzip commandlinetools-linux-9477386_latest.zip && sudo mv cmdline-tools $HOME/Android/Sdk60RUN sudo curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash61 62# -----------63COPY ./keyboard /etc/default/keyboard64# Port65ENV PORT=786066# Use our custom entrypoint script first67COPY deploy-container/entrypoint.sh /usr/bin/deploy-container-entrypoint.sh68RUN sudo chmod +x /usr/bin/deploy-container-entrypoint.sh69RUN curl -fsSL https://coder.com/install.sh | sh -s70 71ENTRYPOINT ["/usr/bin/deploy-container-entrypoint.sh"]