Dockerfile 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. FROM debian:buster-slim
  2. RUN apt-get update && apt-get install --yes --no-install-recommends \
  3. ca-certificates \
  4. curl \
  5. libatomic1 \
  6. libgl1-mesa-glx \
  7. libopenal1 \
  8. libxcb1 \
  9. libxcursor1 \
  10. libxrandr2
  11. # ADD won't cache
  12. ARG LAUNCHER_VERSION=1.2.3
  13. RUN mkdir --parents /toontown-rewritten/launcher \
  14. && curl -L https://download.toontownrewritten.com/launcher/linux/TTRLinux-v${LAUNCHER_VERSION}.tar.gz \
  15. | tar -x -v --strip-components 1 -C /toontown-rewritten/launcher/ \
  16. && useradd player \
  17. && mkdir /toontown-rewritten/engine \
  18. && chown player /toontown-rewritten/engine
  19. # TODO merge layer
  20. RUN apt-get update && apt-get install --yes --no-install-recommends \
  21. xfonts-base `# launcher font`
  22. # debug
  23. #RUN apt-get install --yes --no-install-recommends file binutils ranger
  24. USER player
  25. VOLUME /toontown-rewritten/engine
  26. WORKDIR /toontown-rewritten/engine
  27. # symbol lookup error: /usr/lib/x86_64-linux-gnu/libGLX_mesa.so.0: undefined symbol: drmGetDevice2
  28. ENV LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libdrm.so.2
  29. # X Error: BadAccess (attempt to access private resource denied) 10
  30. # X Error: BadShmSeg (invalid shared segment parameter) 128
  31. # X Error: BadDrawable (invalid Pixmap or Window parameter) 9
  32. ENV QT_X11_NO_MITSHM=1
  33. CMD /toontown-rewritten/launcher/Launcher