2020-04-02 17:50:36 +00:00
|
|
|
FROM ubuntu:18.04 as build
|
2020-04-01 03:11:48 +00:00
|
|
|
|
2020-04-02 17:50:36 +00:00
|
|
|
RUN apt-get update && \
|
|
|
|
apt-get install -y \
|
|
|
|
binutils-mips-linux-gnu \
|
|
|
|
bsdmainutils \
|
|
|
|
build-essential \
|
2020-05-09 02:11:59 +00:00
|
|
|
git \
|
2020-04-02 17:50:36 +00:00
|
|
|
libaudiofile-dev \
|
2020-05-09 02:11:59 +00:00
|
|
|
libsdl2-dev \
|
2020-04-02 17:50:36 +00:00
|
|
|
pkg-config \
|
|
|
|
python3 \
|
|
|
|
wget \
|
2020-05-09 02:11:59 +00:00
|
|
|
zlib1g-dev && \
|
|
|
|
rm -rf /var/lib/apt/lists/*
|
2020-04-01 03:11:48 +00:00
|
|
|
|
2020-04-02 17:50:36 +00:00
|
|
|
RUN wget \
|
|
|
|
https://github.com/n64decomp/qemu-irix/releases/download/v2.11-deb/qemu-irix-2.11.0-2169-g32ab296eef_amd64.deb \
|
|
|
|
-O qemu.deb && \
|
|
|
|
echo 8170f37cf03a08cc2d7c1c58f10d650ea0d158f711f6916da9364f6d8c85f741 qemu.deb | sha256sum --check && \
|
|
|
|
dpkg -i qemu.deb && \
|
|
|
|
rm qemu.deb
|
2020-04-01 03:11:48 +00:00
|
|
|
|
2020-05-11 02:24:09 +00:00
|
|
|
RUN git clone --depth 1 https://github.com/emscripten-core/emsdk.git && \
|
|
|
|
./emsdk/emsdk install latest && \
|
2020-05-11 03:18:04 +00:00
|
|
|
./emsdk/emsdk activate latest
|
2020-05-09 02:11:59 +00:00
|
|
|
|
2020-04-01 03:11:48 +00:00
|
|
|
RUN mkdir /sm64
|
|
|
|
WORKDIR /sm64
|
2020-05-11 03:18:04 +00:00
|
|
|
ENV PATH="/sm64/tools:/emsdk:/emsdk/upstream/emscripten:${PATH}"
|
2020-04-01 03:11:48 +00:00
|
|
|
|
2020-04-02 17:50:36 +00:00
|
|
|
CMD echo 'usage: docker run --rm --mount type=bind,source="$(pwd)",destination=/sm64 sm64 make VERSION=${VERSION:-us} -j4\n' \
|
|
|
|
'see https://github.com/n64decomp/sm64/blob/master/README.md for advanced usage'
|