Upload files to ''

This commit is contained in:
2022-02-27 21:21:55 +00:00
parent 7fbe93e73a
commit fe167622ed
3 changed files with 65 additions and 0 deletions
+17
View File
@@ -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"]