diff --git a/Dockerfile b/Dockerfile index f787524548..f6a908cfc2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,11 @@ FROM ubuntu:20.04 as build ENV DEBIAN_FRONTEND=noninteractive -RUN sudo ./install.sh +COPY requirements.txt / +COPY requirements_extra.txt / +COPY install.sh / + +RUN apt-get update && apt-get install -y sudo && ./install.sh --extra RUN mkdir /papermario WORKDIR /papermario diff --git a/README.md b/README.md index 03882ee791..d599574a5f 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,16 @@ $ ./install.sh Our install script does not yet support distros other than Ubuntu, Arch, and their derivatives. Please consider contributing to the script if you use another distro! +##### Docker + +A Docker image containing all dependencies can be built and ran as follows: +```sh +# build image +$ docker build . -t pm +# spin up container, mounting current directory inside +$ docker run --rm -ti -v $(pwd):/papermario pm +``` + #### Base ROM You'll need a Paper Mario (USA) ROM to work on this project. Copy it into the root directory of the repository with the name `baserom.z64`.