diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..cab9d56 --- /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 ./ +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 9d5dfed..7a66231 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,10 @@ # docker-silentserviceii +docker image of Silent Service II running on js-dos + +run the following to build +`docker build -t docker-silentserviceii --build-arg GAME_URL=https://code.imhard4.men/crappyrules/docker-silentserviceii/raw/branch/master/silent-service-2.zip --build-arg GAME_ARGS=\"SS2.EXE\" .` + +once you have built the image, run with + +`docker run -d -p 8000:8000 docker-silentserviceii` \ No newline at end of file diff --git a/index.html b/index.html new file mode 100644 index 0000000..9c0ee8f --- /dev/null +++ b/index.html @@ -0,0 +1,30 @@ + + +
+Silent Service II was released in 1990. It was a World War II video game sequel to Silent Service.
+ + diff --git a/silent-service-2.zip b/silent-service-2.zip new file mode 100644 index 0000000..5ffe1c5 Binary files /dev/null and b/silent-service-2.zip differ