Skip to content

Instantly share code, notes, and snippets.

@Siss3l
Created August 10, 2023 11:00
Show Gist options
  • Save Siss3l/2a553be977180ebe0019fa30b53da22c to your computer and use it in GitHub Desktop.
Save Siss3l/2a553be977180ebe0019fa30b53da22c to your computer and use it in GitHub Desktop.
Playing more or less Ankama-Games with Docker from any web browser
version: 3.8
services:
launcher:
build: launcher
container_name: launcher
depends_on:
- novnc
environment:
- DISPLAY=novnc:0.0
image: dockerfus/launcher
restart: always
volumes:
- dofus2:/opt/dofus2
- flyn:/opt/flyn
- krosmaga:/opt/krosmaga
- onemoregate:/opt/onemoregate
- retro:/opt/retro
- supernanoblaster:/opt/supernanoblaster
- wakfu:/opt/wakfu
- waven:/opt/waven
novnc:
build: novnc
container_name: novnc
environment:
- DISPLAY_HEIGHT=720
- DISPLAY_WIDTH=1280
image: dockerfus/novnc
ports:
- 8080:80
restart: always
volumes:
dofus2:
flyn:
krosmaga:
onemoregate:
retro:
supernanoblaster:
wakfu:
waven:
FROM dorowu/ubuntu-desktop-lxde-vnc:latest
WORKDIR /root/Desktop
ENV WINEPREFIX=/opt/wine WINEARCH=win32 TARGET_APPIMAGE=Setup-x86_64.AppImage APPIMAGE_EXTRACT_AND_RUN=1
EXPOSE 8080
# Have to get the launcher as Setup-x86_64.AppImage file beforehand, for strictly educational purposes.
COPY --chmod=755 ./Setup-x86_64.AppImage .
RUN ./Setup-x86_64.AppImage --appimage-extract && printf '#!/bin/sh\n/root/Desktop/squashfs-root/zaap --no-sandbox' > run.sh && chmod a+x run.sh
RUN apt update && apt upgrade -y && apt install default-jdk libfuse2 nano wine -y
# Here the commands for building/launching the container: docker build -t dockerfus -f Dockerfile . && docker run -p 8080:80 -v /dev/shm:/dev/shm dockerfus
# Then the graphical desktop-sharing system can be accessed from http://localhost:8080/ on any web browser (there may be some restrictions in place).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment