forked from Project-Aloha/mu_aloha_platforms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
25 lines (19 loc) · 987 Bytes
/
Dockerfile
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
FROM ubuntu:22.04
ENV DEBIAN_FRONTEND=noninteractive
RUN sed -i 's/archive.ubuntu.com/mirrors.ustc.edu.cn/g' /etc/apt/sources.list \
&& sed -i 's/security.ubuntu.com/mirrors.ustc.edu.cn/g' /etc/apt/sources.list
RUN apt update -y && \
apt upgrade -y && \
apt -y install python3-venv pip git build-essential nuget build-essential uuid-dev \
iasl nasm gcc-aarch64-linux-gnu python3.10 python3-distutils python3-git python3-pip \
gettext locales gnupg ca-certificates python3-venv git git-core clang llvm curl mono-devel lld
# ENV CLANGDWARF_BIN /usr/lib/llvm-38/bin/
# ENV CLANGDWARF_AARCH64_PREFIX aarch64-linux-gnu-
RUN update-alternatives --install /usr/bin/objcopy objcopy /bin/aarch64-linux-gnu-objcopy 70
RUN rm -rf /var/lib/apt/lists/* \
&& locale-gen en_US.UTF-8
ENV LANG en_US.utf8
WORKDIR /build
COPY . .
RUN pip install --upgrade -r pip-requirements.txt && git config --global --add safe.directory '*'
CMD ["/bin/bash"]