diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..082a1db --- /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 bg.jpg ./ +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 50f3822..5f649a8 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,10 @@ # docker-wordmunchers -docker image of word munchers running on js-dos \ No newline at end of file +docker image of word munchers running on js-dos + +run the following to build +`docker build -t docker-numbermunchers --build-arg GAME_URL=https://code.imhard4.men/crappyrules/docker-wordmunchers/raw/branch/master/wordmunchers.zip --build-arg GAME_ARGS=\"WM.EXE\" .` + +once you have built the image, run with + +`docker run -d -p 8000:8000 docker-wordmunchers` \ No newline at end of file diff --git a/bg.jpg b/bg.jpg new file mode 100644 index 0000000..50f2ff7 Binary files /dev/null and b/bg.jpg differ diff --git a/index.html b/index.html new file mode 100644 index 0000000..5f9ac49 --- /dev/null +++ b/index.html @@ -0,0 +1,29 @@ + + +
+Here is the video game “Word Munchers”! Released in 1990 on DOS, it's still available and playable with some tinkering. It's an action and educational game, set in a reading / writing theme and it was released on Apple II as well.
+ +