• Joined on 2023-02-03

my-dev-server (latest)

Published 2024-02-25 08:37:49 +00:00 by mol in mol/my-dev-server

Installation

docker pull git.liliyamol.cn/mol/my-dev-server:latest
sha256:aaaf7e127ab8d43e665742d99ed500d3f8acbd22dab3c71490ced6807975da66

Image Layers

ADD file:c03517c5ddbed4053165bfdf984b27a006fb5f533ca80b5798232d96df221440 in /
CMD ["bash"]
RUN /bin/sh -c apt-get update && apt-get install -y curl dumb-init zsh htop locales man nano git git-lfs procps openssh-client sudo vim.tiny lsb-release && 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.5/fixuid-0.5-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 release-packages/code-server*.deb /tmp/ # buildkit
COPY ci/release-image/entrypoint.sh /usr/bin/entrypoint.sh # buildkit
RUN /bin/sh -c dpkg -i /tmp/code-server*$(dpkg --print-architecture).deb && rm /tmp/code-server*.deb # buildkit
EXPOSE map[8080/tcp:{}]
USER 1000
ENV USER=coder
WORKDIR /home/coder
ENTRYPOINT ["/usr/bin/entrypoint.sh" "--bind-addr" "0.0.0.0:8080" "."]
EXPOSE 8080
EXPOSE 22
USER root
WORKDIR /home/coder
VOLUME [/mnt/project /home/coder]
COPY file:1fa1c055d4245b7a3c8f5360a4cde6fe41684b496e00c5142067f38a975b034e in /usr/bin/
ENV ENTRYPOINTD=/entrypoint.d
/bin/sh -c echo "安装基础工具与配置文件" && sed -i -e 's/deb.debian.org/mirrors.huaweicloud.com/g' -e 's/security.debian.org/mirrors.huaweicloud.com/g' /etc/apt/sources.list && echo -e "set meta-flag on \nset convert-meta off \nset input-meta on \nset output-meta on" > /home/coder/.inputrc && apt-get update && apt-get install -y tzdata && ln -fs /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && dpkg-reconfigure -f noninteractive tzdata && apt-get install -y curl && apt-get install -y vim && apt-get install -y openssh-server && mkdir /tmp/log && touch /tmp/log/info.log && chmod 777 /tmp/log/info.log && chmod 777 /usr/bin/entrypoint.sh && echo "安装 node 环境" && export HOMEBREW_BREW_GIT_REMOTE="https://mirrors.ustc.edu.cn/brew.git" && export HOMEBREW_CORE_GIT_REMOTE="https://mirrors.ustc.edu.cn/homebrew-core.git" && export HOMEBREW_BOTTLE_DOMAIN="https://mirrors.ustc.edu.cn/homebrew-bottles" && export HOMEBREW_API_DOMAIN="https://mirrors.ustc.edu.cn/homebrew-bottles/api" && /bin/bash -c "$(curl -fsSL https://mirrors.ustc.edu.cn/misc/brew-install.sh)" && (echo; echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"') >> /root/.bashrc && eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" && echo '# Set PATH, MANPATH, etc., for Homebrew.' >> /root/.bashrc && echo 'export HOMEBREW_BREW_GIT_REMOTE="https://mirrors.ustc.edu.cn/brew.git"' >> /root/.bashrc && echo 'export HOMEBREW_CORE_GIT_REMOTE="https://mirrors.ustc.edu.cn/homebrew-core.git"' >> /root/.bashrc && apt-get install -y build-essential && brew update && brew install n && ln -s /home/linuxbrew/.linuxbrew/bin/n /usr/bin/n && export N_NODE_MIRROR=https://npmmirror.com/mirrors/node/ && n 18.15.0 && npm install -g nrm --registry=http://registry.npmmirror.com && nrm use taobao && echo "安装 python 环境" && apt-get install -y python3 python3-dev python3-venv python3-pip python3-wheel && ln -s /usr/bin/python3 /usr/bin/python && echo "配置 ssh" && rm -f /etc/ssh/ssh_host_rsa_key && ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key -N '' && rm -f /etc/ssh/ssh_host_dsa_key && ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key -N '' && rm -f /etc/ssh/ssh_host_ecdsa_key && ssh-keygen -t ecdsa -f /etc/ssh/ssh_host_ecdsa_key -N '' && rm -f /etc/ssh/ssh_host_ed25519_key && ssh-keygen -t ed25519 -f /etc/ssh/ssh_host_ed25519_key -N '' && sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/" /etc/ssh/sshd_config
ENTRYPOINT ["/usr/bin/entrypoint.sh" "--bind-addr" "0.0.0.0:8080" "."]
LABEL org.opencontainers.image.created=2024-02-25T08:24:59Z
LABEL org.opencontainers.image.revision=5adaa23df76324bc0587db502522f6d73e80c5fc
LABEL org.opencontainers.image.source=https://git.liliyamol.cn:8081/mol/my-dev-server.git
LABEL org.opencontainers.image.url=https://git.liliyamol.cn:8081/mol/my-dev-server

Labels

Key Value
org.opencontainers.image.created 2024-02-25T08:24:59Z
org.opencontainers.image.revision 5adaa23df76324bc0587db502522f6d73e80c5fc
org.opencontainers.image.source https://git.liliyamol.cn:8081/mol/my-dev-server.git
org.opencontainers.image.url https://git.liliyamol.cn:8081/mol/my-dev-server
Details
Container
2024-02-25 08:37:49 +00:00
36
OCI / Docker
linux/amd64
1.7 GiB
Versions (1) View all
latest 2024-02-25