2021-12-06 18:28:36 +00:00
FROM ubuntu:21.10 as build
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
RUN python3 -m pip install --user colorama ansiwrap attrs watchdog python-Levenshtein
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
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)'"]