Published on

mu-docker镜像

Authors
FROM  debian:bookworm-slim 
MAINTAINER maked by jcobcn
USER root
SHELL ["/bin/bash", "-c"]
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
WORKDIR /etc/apt
RUN rm -f /etc/apt/sources.list.d/debian.sources && \
    echo 'deb http://mirrors.huaweicloud.com/debian/ bookworm main non-free-firmware' >> /etc/apt/sources.list && \
    apt update && \
    apt install -y file wget curl vim net-tools procps telnet iputils-ping && \
    adduser --disabled-password --gecos "" clouder
    # echo 'deb [trusted=yes] https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main non-free non-free-firmware contrib' >> /etc/apt/sources.list && \
    # echo 'deb-src [trusted=yes] https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main non-free non-free-firmware contrib' >> /etc/apt/sources.list && \
    # echo 'deb [trusted=yes] https://mirrors.tuna.tsinghua.edu.cn/debian-security/ bookworm-security main' >> /etc/apt/sources.list && \
    # echo 'deb-src [trusted=yes] https://mirrors.tuna.tsinghua.edu.cn/debian-security/ bookworm-security main' >> /etc/apt/sources.list && \
    # echo 'deb [trusted=yes] https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main non-free non-free-firmware contrib' >> /etc/apt/sources.list && \
    # echo 'deb-src [trusted=yes] https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main non-free non-free-firmware contrib' >> /etc/apt/sources.list && \
    # echo 'deb [trusted=yes] https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-backports main non-free non-free-firmware contrib' >> /etc/apt/sources.list && \
    # echo 'deb-src [trusted=yes] https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-backports main non-free non-free-firmware contrib' >> /etc/apt/sources.list && \
USER clouder
SHELL ["/bin/bash", "-c"]
WORKDIR /home/clouder
RUN curl -fsSL https://codigger.onecloud.cn/setup.sh | bash
RUN source .bashrc
ENV CDS_ROOT=/home/clouder/.codigger
ENV CDS_ROSE_REPO=/home/clouder/.codigger/sense
ENV CDS_ROSE_HOME=/home/clouder/.codigger/object
ENV PATH=/home/clouder/.codigger/sense/raw-onecloud-mudem:/home/clouder/.codigger/bin:/.codigger/sense/raw-onecloud-mudem:/.codigger/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
ENTRYPOINT ["/bin/bash"]