一个使用jupyterlab + code-server进行管理的镜像
244
wget -c -N -O code-server/code-server-${CPU}.rpm \
$(curl https://api.github.com/repos/coder/code-server/releases/latest | grep -oE "http.*${CPU}.rpm")
docker build --platform=linux/${CPU} --pull -t openeuler:22.03-lts .docker buildx build -t openeuler:22.03-lts [--platform linux/amd64,linux/arm64] . <--load|--push>docker run --platform=linux/${CPU} --name OpenEuler_22.03_${CPU} \
--privileged=true -v /sys/fs/cgroup:/sys/fs/cgroup \
-p 443:${PORT} \
-h "OpenEuler" \
-d openeuler:22.03-lts /usr/sbin/init
FROM openeuler/openeuler:22.03-lts
ARG TARGETARCH
COPY code-server/code-server-${TARGETARCH}.rpm /root/
RUN dnf -y update \
&& dnf -y install systemd git \
&& dnf -y install ~/code-server-${TARGETARCH}.rpm \
&& dnf autoremove && dnf clean all \
&& rm -rf ~/code-server-${TARGETARCH}.rpm \
&& mkdir -p ~/.config/code-server ~/.local/share/code-server \
&& systemctl enable code-server@root
COPY code-server/config.yaml /root/.config/code-server/
COPY code-server/localhost* /root/.local/share/code-server/
COPY openEuler.repo /etc/yum.repos.d/
CMD /bin/sh
EXPOSE 443
Content type
Image
Digest
sha256:8b67516a2…
Size
852.5 MB
Last updated
over 3 years ago
docker pull d1005562341/openeuler:20.03-lts-sp3