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 facdb59..c113a3f 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,10 @@ # docker-shadowpresident -docker image of Shadow President running on js-dos \ No newline at end of file +docker image of Shadow President running on js-dos + +run the following to build +`docker build -t docker-shadowpresident --build-arg GAME_URL=https://code.imhard4.men/crappyrules/docker-shadowpresident/raw/branch/master/SHADOW.zip --build-arg GAME_ARGS=\"SHADOW.EXE\" .` + +once you have built the image, run with + +`docker run -d -p 8000:8000 docker-shadowpresident` \ No newline at end of file diff --git a/index.html b/index.html new file mode 100644 index 0000000..aca0f3b --- /dev/null +++ b/index.html @@ -0,0 +1,37 @@ + + + + Shadow President Online + + + + + +




+
+ +
+

Shadow President

+

Game Manual

+

The game put the player in the role of the President of the United States in a situation loosely based on the Cold War and the early 1990s. + Using a timeline that starts during the end of the Ethiopia-Somalia war, players can prepare Kuwait to be invaded by Iraq during Operation + Desert Shield. Being popular enough to be re-elected is a vital component of the game (re-elections can be disabled, greatly reducing the effect + of popularity). Managing the budget of the United States, sending aid to foreign countries, dealing with diplomatic crises, and even fighting wars + are a largely unavoidable aspect of the game. The player starts the game with seven advisors, which makes the game a bit less confusing. + During every American election year, players are not allowed to access their virtual screen starting at midnight on election night so that a panel + of bureaucrats can analyze their progress. If their popularity and efficiency is good enough, the player is authorized to use the terminal for four + more years. Not getting re-elected automatically means "game over."

+ +