-
Notifications
You must be signed in to change notification settings - Fork 75
/
Dockerfile
24 lines (17 loc) · 925 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
FROM debian:bookworm AS mu_builder
# Update package list and install necessary packages
RUN apt update -y && \
apt install -y pip git mono-devel build-essential nuget uuid-dev iasl nasm gcc-aarch64-linux-gnu gcc-arm-linux-gnueabihf python3 python3-distutils python3-git python3-pip gettext locales gnupg ca-certificates python3-venv git-core clang llvm curl python-is-python3 device-tree-compiler adb fastboot
RUN ln -s /usr/bin/env /usr/bin/sudo
COPY . /app
RUN sed -i 's/pip install/pip install --break-system-packages/' /app/setup_env.sh
RUN /bin/sh -c "cd /app && ./setup_env.sh -p apt"
# Create an executable bash script /runasuser.sh
COPY ./.docker/runasuser.sh /runasuser.sh
RUN chmod +x /runasuser.sh
WORKDIR /app
# Label the image
LABEL maintainer="Dani Ash <d4n1.551@gmail.com>" \
description="Image for EDK2 development with necessary tools" \
version="latest" \
edk2-builder="latest"