k-project/code-server (sha256:4383ee1b25ffba1e202656c8ea274f877b8c6756f044dce614b6fe9aacfe0292)

Published 2026-05-24 16:54:33 +00:00 by gdn

Installation

docker pull forge.dinoia.eu/gdn/k-project/code-server@sha256:4383ee1b25ffba1e202656c8ea274f877b8c6756f044dce614b6fe9aacfe0292
sha256:4383ee1b25ffba1e202656c8ea274f877b8c6756f044dce614b6fe9aacfe0292

Image layers

# debian.sh --arch 'amd64' out/ 'trixie' '@1779062400'
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 if grep -q 1000 /etc/passwd; then userdel -r "$(id -un 1000)"; fi && 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 curl -fsSL https://get.docker.com -o get-docker.sh # buildkit
RUN /bin/sh -c sh get-docker.sh # buildkit
RUN /bin/sh -c sudo usermod -aG docker coder # buildkit
RUN /bin/sh -c sudo apt update && sudo apt install -y --no-install-recommends python3 python3-pip python-is-python3 python3-venv make zip unzip pipx npm git xz-utils libglu1-mesa clang cmake ninja-build pkg-config libxi6 libxtst6 libsqlite3-dev libreadline-dev myrepos zlib1g zlib1g-dev lzma liblzma-dev libbz2-dev jq libnss3 libnspr4 libatk1.0-0 libatk-bridge2.0-0 libcups2 libdrm2 libdbus-1-3 libxkbcommon0 libxcomposite1 libxdamage1 libxfixes3 libxrandr2 libgbm1 libasound2 && sudo apt upgrade -y # buildkit
USER root
RUN /bin/sh -c apt-get update && apt-get install -y --no-install-recommends ripgrep ffmpeg openssh-server && rm -rf /var/lib/apt/lists/* # buildkit
RUN /bin/sh -c printf 'Port 2244\nAddressFamily any\nHostKey /home/coder/.ssh/host_keys/ssh_host_rsa_key\nHostKey /home/coder/.ssh/host_keys/ssh_host_ed25519_key\nPubkeyAuthentication yes\nAuthorizedKeysFile /home/coder/.ssh/authorized_keys\nPasswordAuthentication no\nChallengeResponseAuthentication no\nUsePAM no\nPermitRootLogin no\nAllowUsers coder\nStrictModes no\nPidFile /home/coder/.ssh/sshd.pid\nLogLevel INFO\n' > /etc/ssh/sshd_config.coder && usermod -p '*' coder # buildkit
RUN /bin/sh -c curl -LsSf https://astral.sh/uv/install.sh | env INSTALLER_NO_MODIFY_PATH=1 HOME=/root sh && ln -sf /root/.local/bin/uv /usr/local/bin/uv && ln -sf /root/.local/bin/uvx /usr/local/bin/uvx # buildkit
ENV UV_PYTHON_INSTALL_DIR=/opt/uv-python
RUN /bin/sh -c git clone --depth 1 https://github.com/NousResearch/hermes-agent /opt/hermes-agent && cd /opt/hermes-agent && uv venv --python 3.11 .venv && uv pip install --no-cache-dir -e ".[all,messaging]" && ln -sf /opt/hermes-agent/.venv/bin/hermes /usr/local/bin/hermes && chmod -R a+rX /opt/uv-python /opt/hermes-agent && find /opt/uv-python /opt/hermes-agent/.venv/bin -type f -exec chmod a+x {} + # buildkit
USER coder
Details
Container
2026-05-24 16:54:33 +00:00
1
OCI / Docker
linux/amd64
963 MiB
Versions (13) View all