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 c83f6a7..a1f108c 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,10 @@ # docker-mariotype -docker image of Mario Teaches Typing running on js-dos \ No newline at end of file +docker image of Mario Teaches Typing running on js-dos + +run the following to build +`docker build -t docker-mariotype --build-arg GAME_URL=https://code.imhard4.men/crappyrules/docker-mariotype/raw/branch/master/mariotype.zip --build-arg GAME_ARGS=\"MARIO.EXE\" .` + +once you have built the image, run with + +`docker run -d -p 8000:8000 docker-mariotype` \ No newline at end of file diff --git a/bg.jpg b/bg.jpg new file mode 100644 index 0000000..9ce94d8 Binary files /dev/null and b/bg.jpg differ diff --git a/index.html b/index.html new file mode 100644 index 0000000..c490e21 --- /dev/null +++ b/index.html @@ -0,0 +1,41 @@ + + + + Mario Teaches Typing Online + + + + + +




+
+ +
+

Mario Teaches Typing

+

Mario comes to the PC, in the form of a typing tutor. + + In this product you get to play one of four games, of progressing difficulty (as either Mario, Luigi or the Princess): + + Mario's Smash & Dash: Assist your character run past a series of boxes and turtles, each labelled with a letter that must be typed to avoid the obstacle. + + Mario's Wet World Challenge: Help your characters swim across the screen whilst being chased by hungry sea creatures - only typing the words that scroll across the bottom of the screen will let you escape. + + Mario's Tunnel Of Doom: Help your character run through a tunnel filled with traps, avoiding falling blocks and the like, by correctly typing the sentences which scroll across the top of the screen. + + Mario's Expert Express: Essentially a practice typing lesson where you copy and type pre-defined paragraphs with the assistance of Mario's supervision. + + From Mobygames.com.

+ +