code-server (sha256:93b3cfac0a57c204b984ea18f472db15ce5219d63c89eccc1d17ead93ee4ad9f)
Published 2025-07-31 03:02:41 +01:00 by merith-tk
Installation
docker pull git.merith.xyz/oci/code-server@sha256:93b3cfac0a57c204b984ea18f472db15ce5219d63c89eccc1d17ead93ee4ad9f
sha256:93b3cfac0a57c204b984ea18f472db15ce5219d63c89eccc1d17ead93ee4ad9f
Image layers
# debian.sh --arch 'arm64' out/ 'bookworm' '@1753056000' |
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" "."] |
USER root |
ENV DEFAULT_WORKSPACE=/workspace |
ENV DOCKER_USER=coder |
VOLUME [/home /workspace] |
RUN /bin/sh -c apt-get update && apt-get upgrade -y # buildkit |
RUN /bin/sh -c apt-get install -y --no-install-recommends ca-certificates gnupg lsb-release && install -m 0755 -d /etc/apt/keyrings && curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc && chmod a+r /etc/apt/keyrings/docker.asc && echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null && apt-get update # buildkit |
RUN /bin/sh -c apt-get install -y --no-install-recommends docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin && usermod -aG docker coder # buildkit |
RUN /bin/sh -c apt-get install -y --no-install-recommends sudo build-essential procps curl file git # buildkit |
RUN /bin/sh -c curl -fsSL -o /usr/bin/entrypoint-official.sh https://raw.githubusercontent.com/coder/code-server/main/ci/release-image/entrypoint.sh && chmod +x /usr/bin/entrypoint-official.sh # buildkit |
COPY entrypoint.sh /usr/bin/entrypoint.sh # buildkit |
RUN /bin/sh -c chmod +x /usr/bin/entrypoint.sh # buildkit |
ENV ENTRYPOINTD=/home/coder/entrypoint.d |
ENV USER=coder |
ENV HOME=/home/coder |
RUN /bin/sh -c apt-get install -y --no-install-recommends sudo build-essential procps curl file git # buildkit |
RUN /bin/sh -c apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* # buildkit |
ENTRYPOINT ["/usr/bin/entrypoint.sh" "--bind-addr" "0.0.0.0:8080" "/workspace"] |
Details
2025-07-31 03:02:41 +01:00
Versions (5)
View all
Container
0
OCI / Docker
linux/arm64
462 MiB
53e074c7cfe8b4cec58322f7b5e7bd373727978f
2025-08-01
nightly
2025-08-01
a697d1821d461c41afd3199734d755e5f30dd55e
2025-01-02
c513954671b452f03b5d6f96494ad899e3daf2fc
2024-11-11
03af14d425f49390848722ca0ef260d128921ae3
2024-11-03