2024-12-15 20:52:08 +00:00
FROM ubuntu:24.04 AS build
2021-12-06 18:28:36 +00:00
ENV TZ=UTC
2024-12-15 20:52:08 +00:00
ENV LANG=C.UTF-8
2020-04-25 00:34:00 +00:00
2021-12-06 18:28:36 +00:00
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && \
apt-get update && \
2020-04-25 00:34:00 +00:00
apt-get install -y \
binutils-mips-linux-gnu \
build-essential \
pkg-config \
python3 \
2020-05-04 16:11:37 +00:00
python3-pip \
2024-10-28 14:18:23 +00:00
python3-venv \
2020-05-04 16:11:37 +00:00
git \
2021-12-06 18:28:36 +00:00
wget \
2020-05-04 16:11:37 +00:00
unzip \
clang-tidy \
2020-05-08 03:58:42 +00:00
clang-format \
2021-12-06 18:28:36 +00:00
libpng-dev && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
2020-04-25 00:34:00 +00:00
2020-07-04 12:34:51 +00:00
2020-04-25 00:34:00 +00:00
WORKDIR /oot
2022-08-28 15:21:22 +00:00
RUN git config --global --add safe.directory /oot
2021-12-06 18:28:36 +00:00
CMD ["/bin/sh", "-c", \
"echo 'usage:\n docker run --rm --mount type=bind,source=\"$(pwd)\",destination=/oot oot make -j$(nproc) setup\n docker run --rm --mount type=bind,source=\"$(pwd)\",destination=/oot oot make -j$(nproc)'"]