Dockerfile 784 B

123456789101112131415161718192021222324252627
  1. FROM ubuntu:latest
  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. RUN useradd player
  17. RUN usermod --append --groups video,audio player
  18. RUN mkdir /toontown-rewritten/engine \
  19. && chown player /toontown-rewritten/engine
  20. USER player
  21. VOLUME /toontown-rewritten/engine
  22. WORKDIR /toontown-rewritten/engine
  23. CMD /toontown-rewritten/launcher/Launcher