2022-08-28 15:21:22 +00:00
FROM ubuntu:22.04 as build
2021-12-06 18:28:36 +00:00
ENV TZ=UTC
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 \
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
2023-08-01 02:30:26 +00:00
RUN python3 -m pip install --user colorama ansiwrap attrs watchdog python-Levenshtein "mapfile-parser>=1.2.1,<2.0.0" "rabbitizer>=1.0.0,<2.0.0"
2020-05-04 16:11:37 +00:00
RUN python3 -m pip install --upgrade attrs pycparser
2020-04-25 00:34:00 +00:00
2020-07-04 12:34:51 +00:00
ENV LANG C.UTF-8
2020-04-25 00:34:00 +00:00
RUN mkdir /oot
WORKDIR /oot
2021-12-06 18:28:36 +00:00
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)'"]