ide (production)
Published 2025-03-02 14:30:06 -05:00 by colin
Installation
docker pull git.nixc.us/colin/ide:production
sha256:3b19dae5a0e7007270a7487032490929efc6c6a0140fa44441ad5bc99432e565
Image Layers
# debian.sh --arch 'amd64' out/ 'bookworm' '@1738540800' |
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 root |
RUN /bin/sh -c apt-get update && apt-get install -y apt-utils bash zsh htop git curl wget net-tools iputils-ping jq python3 python3-pip nmap ca-certificates gnupg lsb-release locales && mkdir -p /etc/apt/keyrings && curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg && echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian $(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null && apt-get update && apt-get install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin && wget https://github.com/aquasecurity/trivy/releases/download/v0.41.0/trivy_0.41.0_Linux-64bit.tar.gz && tar zxvf trivy_0.41.0_Linux-64bit.tar.gz -C /usr/local/bin/ && rm trivy_0.41.0_Linux-64bit.tar.gz && curl -sSL https://git.nixc.us/Nixius/go-glitch/raw/branch/master/install.sh | bash && curl -sSL https://git.nixc.us/Nixius/haste-it/raw/branch/main/install.sh | bash && sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && locale-gen && sed -i '/C.UTF-8/s/^# //g' /etc/locale.gen && locale-gen C.UTF-8 && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* # buildkit |
ENV LC_ALL=C.UTF-8 |
ENV LANG=C.UTF-8 |
ENV LANGUAGE=C.UTF-8 |
RUN /bin/sh -c rm -f /etc/profile.d/01-locale-fix.sh /etc/profile.d/Z99-cloud-locale-test.sh # buildkit |
RUN /bin/sh -c echo "exec /bin/zsh" >> /root/.bashrc && echo "exec /bin/zsh" >> /root/.profile && ln -sf /bin/zsh /bin/sh # buildkit |
RUN /bin/sh -c echo 'export ZSH_THEME="robbyrussell"\nplugins=(git)\nsource $ZSH/oh-my-zsh.sh' > /root/.zshrc && echo "alias ll='ls -la'" >> /root/.zshrc # buildkit |
RUN /bin/sh -c mkdir -p /etc/code-server && echo '{ "security.workspace.trust.enabled": false, "workbench.startupEditor": "none", "workbench.colorTheme": "Default Dark+", "git.allowUnsafeRepositories": true }' > /etc/code-server/settings.json # buildkit |
COPY entrypoint.sh /entrypoint.sh # buildkit |
RUN /bin/sh -c chmod +x /entrypoint.sh # buildkit |
ENTRYPOINT ["/entrypoint.sh"] |
Labels
Key | Value |
---|---|
com.docker.compose.project | ide |
com.docker.compose.service | ide |
com.docker.compose.version | 2.30.3 |
Details
2025-03-02 14:30:06 -05:00
Versions (2)
View all
Container
101
OCI / Docker
linux/amd64
638 MiB
production
2025-03-02
staging
2025-03-02