-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
34 lines (26 loc) · 1.85 KB
/
Dockerfile
File metadata and controls
34 lines (26 loc) · 1.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
FROM gemfield/torchpod
LABEL maintainer="gemfield@civilnet.cn"
ARG GIT_USER=Gemfield
ARG GIT_EMAIL=gemfield@civilnet.cn
##workaround for "apt install -y lib32ncurses-dev libtinfo6" on TorchPod 1.0
RUN curl -O http://security.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.1_amd64.deb && \
curl -O http://security.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2ubuntu0.1_amd64.deb && \
apt update && \
apt install -y gettext-base libgl1 libglib2.0-0 libjpeg-dev libpng-dev pybind11-dev libssl-dev libc-dev libelf-dev gnutls-bin libprotobuf-dev protobuf-compiler \
gperf gcc-multilib g++-multilib gcc-arm-none-eabi liblz4-dev liblz4-tool ccache xsltproc libc6-dev-i386 abootimg libxcursor-dev libxrandr-dev libxinerama-dev \
x11proto-core-dev libx11-dev lib32z1-dev genext2fs u-boot-tools mtools mtd-utils scons libgl1-mesa-dev libgles2-mesa-dev mesa-common-dev libegl1-mesa-dev \
./libtinfo5_6.3-2ubuntu0.1_amd64.deb ./libncurses5_6.3-2ubuntu0.1_amd64.deb libncurses5 libncurses5-dev libfl-dev default-jdk openjdk-21-jdk \
libfdt-dev bridge-utils libxi-dev libvirt-daemon-system libvirt-clients qemu-kvm qemu-system-x86 qemu-system-arm qemu-system-aarch64 && \
apt autoremove -y && \
apt clean && \
rm -rf /var/lib/apt/lists/* && \
rm -f *.deb
RUN rm -f /usr/lib/python3.12/EXTERNALLY-MANAGED && mkdir -p /usr/local/bin/
RUN curl -s https://gitee.com/oschina/repo/raw/fork_flow/repo-py3 > /usr/local/bin/repo && chmod a+x /usr/local/bin/repo
RUN pip3 install -i https://repo.huaweicloud.com/repository/pypi/simple requests && \
pip3 install -i http://repo.huaweicloud.com/repository/pypi/simple rich
COPY torchpod_root/ /
RUN git config --global user.name ${GIT_USER} && \
git config --global user.email ${GIT_EMAIL} && \
git config --global credential.helper store
RUN /gemfield/clean.sh