mirror of
https://github.com/zeldaret/oot.git
synced 2024-11-10 19:20:13 +00:00
Update Dockerfile (#1062)
- Moved to ubuntu 21.10 as base image to be able to make use of GCC 11.2 and LLVM 13 - Cleaned up necessary packages a little - Added simple instructions to the Dockerfile for easier usage
This commit is contained in:
parent
a9b257c0a9
commit
7fa513ec73
1 changed files with 11 additions and 7 deletions
18
Dockerfile
18
Dockerfile
|
@ -1,21 +1,22 @@
|
||||||
FROM ubuntu:18.04 as build
|
FROM ubuntu:21.10 as build
|
||||||
|
ENV TZ=UTC
|
||||||
|
|
||||||
RUN apt-get update && \
|
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && \
|
||||||
|
apt-get update && \
|
||||||
apt-get install -y \
|
apt-get install -y \
|
||||||
binutils-mips-linux-gnu \
|
binutils-mips-linux-gnu \
|
||||||
build-essential \
|
build-essential \
|
||||||
pkg-config \
|
pkg-config \
|
||||||
python3 \
|
python3 \
|
||||||
python3-pip \
|
python3-pip \
|
||||||
wget \
|
|
||||||
git \
|
git \
|
||||||
|
wget \
|
||||||
unzip \
|
unzip \
|
||||||
clang-tidy \
|
clang-tidy \
|
||||||
clang-format \
|
clang-format \
|
||||||
clang-format-11 \
|
libpng-dev && \
|
||||||
nano \
|
apt-get clean && \
|
||||||
vbindiff \
|
rm -rf /var/lib/apt/lists/*
|
||||||
libpng-dev
|
|
||||||
|
|
||||||
RUN python3 -m pip install --user colorama ansiwrap attrs watchdog python-Levenshtein
|
RUN python3 -m pip install --user colorama ansiwrap attrs watchdog python-Levenshtein
|
||||||
RUN python3 -m pip install --upgrade attrs pycparser
|
RUN python3 -m pip install --upgrade attrs pycparser
|
||||||
|
@ -24,3 +25,6 @@ ENV LANG C.UTF-8
|
||||||
|
|
||||||
RUN mkdir /oot
|
RUN mkdir /oot
|
||||||
WORKDIR /oot
|
WORKDIR /oot
|
||||||
|
|
||||||
|
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)'"]
|
||||||
|
|
Loading…
Reference in a new issue