code-server (latest)

Published 2024-06-25 20:41:47 +02:00 by ci in sh-edraft.de/code-server

Installation

docker pull git.sh-edraft.de:443/sh-edraft.de/code-server:latest
sha256:fd564eb6d496c06b030b57fa3dcea734dcd137f07c7aa4beca108cdf5180153f

Image Layers

ADD file:b532f8e401e9a1fcc2ea1fc034adf820a5269c6ace45769f60a81fcb673f01b8 in /
CMD ["bash"]
RUN /bin/sh -c apt-get update && apt-get install -y curl dumb-init git git-lfs htop locales lsb-release man-db nano openssh-client procps sudo vim-tiny wget zsh && git lfs install && rm -rf /var/lib/apt/lists/* # buildkit
RUN /bin/sh -c sed -i "s/# en_US.UTF-8/en_US.UTF-8/" /etc/locale.gen && locale-gen # buildkit
ENV LANG=en_US.UTF-8
RUN /bin/sh -c adduser --gecos '' --disabled-password coder && echo "coder ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers.d/nopasswd # buildkit
RUN /bin/sh -c ARCH="$(dpkg --print-architecture)" && curl -fsSL "https://github.com/boxboat/fixuid/releases/download/v0.6.0/fixuid-0.6.0-linux-$ARCH.tar.gz" | tar -C /usr/local/bin -xzf - && chown root:root /usr/local/bin/fixuid && chmod 4755 /usr/local/bin/fixuid && mkdir -p /etc/fixuid && printf "user: coder\ngroup: coder\n" > /etc/fixuid/config.yml # buildkit
COPY ci/release-image/entrypoint.sh /usr/bin/entrypoint.sh # buildkit
RUN /bin/sh -c dpkg -i /tmp/packages/code-server*$(dpkg --print-architecture).deb # buildkit
ENV ENTRYPOINTD=/entrypoint.d
EXPOSE map[8080/tcp:{}]
USER 1000
ENV USER=coder
WORKDIR /home/coder
ENTRYPOINT ["/usr/bin/entrypoint.sh" "--bind-addr" "0.0.0.0:8080" "."]
RUN /bin/sh -c sudo apt update # buildkit
RUN /bin/sh -c sudo apt upgrade -y # buildkit
RUN /bin/sh -c sudo apt install -y nano curl wget zip unzip tree # buildkit
RUN /bin/sh -c wget https://packages.microsoft.com/config/debian/12/packages-microsoft-prod.deb -O packages-microsoft-prod.deb # buildkit
RUN /bin/sh -c sudo dpkg -i packages-microsoft-prod.deb # buildkit
RUN /bin/sh -c rm packages-microsoft-prod.deb # buildkit
RUN /bin/sh -c sudo apt-get update # buildkit
RUN /bin/sh -c sudo apt-get install -y dotnet-sdk-7.0 # buildkit
RUN /bin/sh -c sudo apt-get install -y aspnetcore-runtime-7.0 # buildkit
RUN /bin/sh -c sudo apt install -y build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev libsqlite3-dev wget libbz2-dev && wget https://www.python.org/ftp/python/3.10.12/Python-3.10.12.tgz && tar -xf Python-3.10.*.tgz && cd Python-3.10.*/ && ./configure --prefix=/usr/local --enable-optimizations --enable-shared LDFLAGS="-Wl,-rpath /usr/local/lib" && make -j $(nproc) && sudo make altinstall && cd ../ && sudo rm -rf Python-3.10.*/ && sudo rm Python-3.10.*.tgz # buildkit
RUN /bin/sh -c sudo update-alternatives --install /usr/bin/python python /usr/local/bin/python3.10 1 # buildkit
RUN /bin/sh -c sudo update-alternatives --install /usr/bin/python3 python /usr/local/bin/python3.10 1 # buildkit
RUN /bin/sh -c sudo update-alternatives --install /usr/bin/pip pip /usr/local/bin/pip3.10 1 # buildkit
RUN /bin/sh -c python3.10 -m pip install --upgrade pip # buildkit
RUN /bin/sh -c python3.10 -m pip install --user --upgrade pip # buildkit
RUN /bin/sh -c python3.10 -m pip install cpl-cli --extra-index-url https://pip.sh-edraft.de # buildkit
RUN /bin/sh -c python3.10 -m pip install cpl-query --extra-index-url https://pip.sh-edraft.de # buildkit
RUN /bin/sh -c sudo apt update # buildkit
RUN /bin/sh -c sudo apt install -y ca-certificates curl gnupg # buildkit
RUN /bin/sh -c sudo mkdir -p /etc/apt/keyrings # buildkit
RUN /bin/sh -c curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg # buildkit
ENV NODE_MAJOR=20
RUN /bin/sh -c echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list # buildkit
RUN /bin/sh -c sudo apt update # buildkit
RUN /bin/sh -c sudo apt install nodejs -y # buildkit
RUN /bin/sh -c sudo npm install -g @angular/cli # buildkit
RUN /bin/sh -c sudo npm install -g ts-node # buildkit
RUN /bin/sh -c sudo apt update # buildkit
RUN /bin/sh -c sudo apt install apt-transport-https -y # buildkit
RUN /bin/sh -c wget -qO- https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo gpg --dearmor -o /usr/share/keyrings/dart.gpg # buildkit
RUN /bin/sh -c echo 'deb [signed-by=/usr/share/keyrings/dart.gpg arch=amd64] https://storage.googleapis.com/download.dartlang.org/linux/debian stable main' | sudo tee /etc/apt/sources.list.d/dart_stable.list # buildkit
RUN /bin/sh -c sudo apt update # buildkit
RUN /bin/sh -c sudo apt install dart -y # buildkit
Details
Container
2024-06-25 20:41:47 +02:00
12
OCI / Docker
linux/amd64
1019 MiB
Versions (1) View all
latest 2024-06-25