diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..e44adbb --- /dev/null +++ b/Dockerfile @@ -0,0 +1,17 @@ +FROM alpine:latest + +ARG GAME_URL +ARG GAME_ARGS + +WORKDIR site +RUN wget https://js-dos.com/6.22/current/js-dos.js && \ + wget https://js-dos.com/6.22/current/wdosbox.js && \ + wget https://js-dos.com/6.22/current/wdosbox.wasm.js && \ + wget -O game.zip "$GAME_URL" + +RUN apk add darkhttpd + +COPY index.html doom.png ./ +RUN sed -i s/GAME_ARGS/$GAME_ARGS/ index.html + +ENTRYPOINT ["/usr/bin/darkhttpd", "/site", "--port", "8000"] \ No newline at end of file diff --git a/README.md b/README.md index d3e3fd3..48fe9b6 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,10 @@ -# docker-doom +# docker-shadowpresident -docker image of Doom running on js-dos \ No newline at end of file +docker image of Doom running on js-dos + +run the following to build +`docker build -t docker-doom --build-arg GAME_URL=https://code.imhard4.men/crappyrules/docker-doom/raw/branch/master/doom.ZIP --build-arg GAME_ARGS=\"DOOM.EXE\" .` + +once you have built the image, run with + +`docker run -d -p 8000:8000 docker-doom` \ No newline at end of file diff --git a/doom.png b/doom.png new file mode 100644 index 0000000..d11c6ad Binary files /dev/null and b/doom.png differ diff --git a/index.html b/index.html new file mode 100644 index 0000000..1ad5d8e --- /dev/null +++ b/index.html @@ -0,0 +1,33 @@ + + +
+
You're a space marine armed with a mere pistol. Your mission is to locate more substantial firepower, blow your way through an onslaught of + undead marines and mutant demons from hell, and navigate yourself off a radioactive moon base. In order to survive, not only do you have to make it + through the first 27 blood-splattered levels of Doom, you also have to get through nine more incredibly tough expert levels in the all-new + episode "Thy Flesh Consumed."
+ +