diff options
| author | Chris <gladiac@gmail.com> | 2021-12-06 19:28:36 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-06 13:28:36 -0500 |
| commit | 7fa513ec7336fdba035093b9842d2537a0c19108 (patch) | |
| tree | 36c102e4869fecb887fc424776bcbca1f620cb38 /Dockerfile | |
| parent | a9b257c0a9818c415e2a2c9538eacdf5dd7a92ef (diff) | |
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
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/Dockerfile b/Dockerfile index 47ebeca8d..bea63cb11 100644 --- a/Dockerfile +++ b/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 \ binutils-mips-linux-gnu \ build-essential \ pkg-config \ python3 \ python3-pip \ - wget \ git \ + wget \ unzip \ clang-tidy \ clang-format \ - clang-format-11 \ - nano \ - vbindiff \ - libpng-dev + libpng-dev && \ + apt-get clean && \ + rm -rf /var/lib/apt/lists/* RUN python3 -m pip install --user colorama ansiwrap attrs watchdog python-Levenshtein RUN python3 -m pip install --upgrade attrs pycparser @@ -24,3 +25,6 @@ ENV LANG C.UTF-8 RUN mkdir /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)'"] |
