FROM debian:buster-slim RUN apt-get update && apt-get install --yes --no-install-recommends \ ca-certificates \ curl \ libatomic1 \ libgl1-mesa-glx \ libopenal1 \ libxcb1 \ libxcursor1 \ libxrandr2 # ADD won't cache ARG LAUNCHER_VERSION=1.2.3 RUN mkdir --parents /toontown-rewritten/launcher \ && curl -L https://download.toontownrewritten.com/launcher/linux/TTRLinux-v${LAUNCHER_VERSION}.tar.gz \ | tar -x -v --strip-components 1 -C /toontown-rewritten/launcher/ \ && useradd player \ && mkdir /toontown-rewritten/engine \ && chown player /toontown-rewritten/engine # TODO merge layer RUN apt-get update && apt-get install --yes --no-install-recommends \ xfonts-base `# launcher font` # debug #RUN apt-get install --yes --no-install-recommends file binutils ranger USER player VOLUME /toontown-rewritten/engine WORKDIR /toontown-rewritten/engine # symbol lookup error: /usr/lib/x86_64-linux-gnu/libGLX_mesa.so.0: undefined symbol: drmGetDevice2 ENV LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libdrm.so.2 # disable shared memory between xorg client & server # https://en.wikipedia.org/wiki/MIT-SHM # X Error: BadAccess (attempt to access private resource denied) 10 # X Error: BadShmSeg (invalid shared segment parameter) 128 # X Error: BadDrawable (invalid Pixmap or Window parameter) 9 ENV QT_X11_NO_MITSHM=1 CMD /toontown-rewritten/launcher/Launcher