1234567891011121314151617181920212223242526272829303132 |
- FROM ubuntu:jammy
- ENV TZ=Asia/Shanghai
- ENV RUSTUP_DIST_SERVER=https://static.rust-lang.org
- 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
- WORKDIR /tmp
- COPY *.sh ./
- RUN apt update && \
- apt install -y ca-certificates curl gnupg wget sudo apt-utils && \
- bash bootstrap.sh --default && \
- sudo cp /tmp/docker-entrypoint.sh /root/entrypoint.sh && \
- sudo chmod a+rwx /root/entrypoint.sh && \
- git config --global --add safe.directory '*' && \
- sudo apt autoremove -q -y && \
- sudo apt clean -q -y && \
- sudo rm -rf /tmp/*
- WORKDIR /root
- ENTRYPOINT [ "/root/entrypoint.sh" ]
- CMD ["/bin/bash"]
|