github.com/Racer159/jackal@v0.32.7-0.20240401174413-0bd2339e4f2e/examples/dos-games/image/Dockerfile (about)

     1  FROM alpine:latest
     2  
     3  WORKDIR /binary
     4  RUN apk add gcc musl-dev && \
     5      wget -O darkhttpd.c https://raw.githubusercontent.com/emikulic/darkhttpd/master/darkhttpd.c && \
     6      cc -static -Os -o darkhttpd darkhttpd.c
     7  
     8  WORKDIR /site
     9  RUN wget https://js-dos.com/6.22/current/js-dos.js && \
    10      wget https://js-dos.com/6.22/current/wdosbox.js && \
    11      wget https://js-dos.com/6.22/current/wdosbox.wasm.js
    12  
    13  RUN wget -O aladdin.zip "https://web.archive.org/web/20190303222445if_/https://www.dosgames.com/files/DOSBOX_ALADDIN.ZIP"
    14  RUN wget -O doom.zip "https://archive.org/download/DoomsharewareEpisode/doom.ZIP"
    15  RUN wget -O mario-brothers.zip "https://image.dosgamesarchive.com/games/mario-bro.zip"
    16  RUN wget -O prince-of-persia.zip "https://web.archive.org/web/20181030180256if_/http://image.dosgamesarchive.com/games/pop1.zip"
    17  RUN wget -O quake.zip "https://web.archive.org/web/20190303223506if_/https://www.dosgames.com/files/DOSBOX_QUAKE.ZIP"
    18  RUN wget -O warcraft-ii.zip "https://web.archive.org/web/20190303222732if_/https://www.dosgames.com/files/DOSBOX_WAR2.ZIP"
    19  
    20  RUN wget -O aladdin.png "https://image.dosgamesarchive.com/screenshots/aladdem-4.png" && \
    21      wget -O doom.png "https://image.dosgamesarchive.com/screenshots/doom01.png" && \
    22      wget -O mario-brothers.png "https://image.dosgamesarchive.com/screenshots/marionl-6.png" && \
    23      wget -O prince-of-persia.png "https://image.dosgamesarchive.com/screenshots/prince102.png" && \
    24      wget -O quake.png "https://image.dosgamesarchive.com/screenshots/quake13.png" && \
    25      wget -O warcraft-ii.png "https://image.dosgamesarchive.com/screenshots/war2demo3.png"
    26  
    27  
    28  COPY index.html .
    29  
    30  FROM scratch
    31  COPY --from=0 /site /site
    32  COPY --from=0 /binary /binary
    33  
    34  WORKDIR /site
    35  ENTRYPOINT ["/binary/darkhttpd", "/site", "--port", "8000"]
    36  
    37  # docker buildx build --push --platform linux/arm/v7,linux/arm64/v8,linux/amd64 --tag Racer159/jackal-game:multi-tile .