mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-08 14:16:47 +00:00
ci: fix docker run failed (#961)
Signed-off-by: longjin <longjin@DragonOS.org>
This commit is contained in:
parent
056c4aad81
commit
79eda4bcf9
@ -4,6 +4,8 @@ FROM ubuntu:jammy
|
|||||||
ENV TZ=Asia/Shanghai
|
ENV TZ=Asia/Shanghai
|
||||||
ENV RUSTUP_DIST_SERVER=https://static.rust-lang.org
|
ENV RUSTUP_DIST_SERVER=https://static.rust-lang.org
|
||||||
ENV RUSTUP_UPDATE_ROOT=https://static.rust-lang.org/rustup
|
ENV RUSTUP_UPDATE_ROOT=https://static.rust-lang.org/rustup
|
||||||
|
ENV FORCE_UNSAFE_CONFIGURE=1
|
||||||
|
|
||||||
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
||||||
|
|
||||||
# 设置工作目录
|
# 设置工作目录
|
||||||
@ -18,6 +20,7 @@ RUN apt update && \
|
|||||||
bash bootstrap.sh --default && \
|
bash bootstrap.sh --default && \
|
||||||
sudo cp /tmp/docker-entrypoint.sh /root/entrypoint.sh && \
|
sudo cp /tmp/docker-entrypoint.sh /root/entrypoint.sh && \
|
||||||
sudo chmod a+rwx /root/entrypoint.sh && \
|
sudo chmod a+rwx /root/entrypoint.sh && \
|
||||||
|
git config --global --add safe.directory '*' && \
|
||||||
sudo apt autoremove -q -y && \
|
sudo apt autoremove -q -y && \
|
||||||
sudo apt clean -q -y && \
|
sudo apt clean -q -y && \
|
||||||
sudo rm -rf /tmp/*
|
sudo rm -rf /tmp/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user