Docker

code-server (python)

Published 2025-03-10 00:14:49 +01:00 by svc-docker

Installation

docker pull git.ao-it.net/docker/code-server:python
sha256:3117ed4c481fc59f80773dbcb03e449342ca73dcf1d0c4c3541764e885508ee6

Image Layers

# debian.sh --arch 'amd64' out/ 'bookworm' '@1736726400'
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" "."]
USER 0
RUN bash -exo pipefail -c apt update ; apt-get install -y python3 python3-pip python3-requests python3-venv; apt clean all ; rm -vrf /var/lib/apt/lists/* # buildkit
USER 1000
RUN bash -exo pipefail -c code-server --install-extension ms-python.python code-server --install-extension bierner.markdown-mermaid code-server --install-extension eamodio.gitlens code-server --install-extension redhat.ansible code-server --install-extension wholroyd.jinja code-server --install-extension yzhang.markdown-all-in-one # buildkit
Details
Container
2025-03-10 00:14:49 +01:00
1
OCI / Docker
linux/amd64
599 MiB
Versions (1) View all
python 2025-03-10