Block a user
klipper-moonraker (v3)
Published 2024-08-04 21:20:56 +02:00 by WRZOOZ
Installation
docker pull gitea.wrzooz.pl/wrzooz/klipper-moonraker:v3sha256:573cbe1c7a7f3dc696f652ed6a95ad40cc32462a1ba2a200d350bf886cec5c6a
Image Layers
| ADD file:61c91b2a02e0d3deb2364da03241d137acf78345623ae188082e574b043032a0 in / |
| CMD ["bash"] |
| RUN /bin/sh -c apt-get update && apt-get install -y sudo supervisor # buildkit |
| RUN /bin/sh -c useradd -ms /bin/bash klippy && adduser klippy dialout # buildkit |
| USER klippy |
| RUN /bin/sh -c mkdir -p /home/klippy/printer_data/config /home/klippy/printer_data/logs /home/klippy/printer_data/comms # buildkit |
| VOLUME [/home/klippy/printer_data] |
| WORKDIR /home/klippy |
| COPY ./supervisord/* /etc/supervisor/conf.d/ # buildkit |
| COPY ./klipper klipper/ # buildkit |
| USER root |
| RUN /bin/sh -c echo 'klippy ALL=(ALL:ALL) NOPASSWD: ALL' > /etc/sudoers.d/klippy && chown klippy:klippy -R klipper # buildkit |
| RUN /bin/sh -c ln -s /bin/true /bin/systemctl # buildkit |
| USER klippy |
| RUN /bin/sh -c ./klipper/scripts/install-debian.sh # buildkit |
| RUN /bin/sh -c sudo rm -f /bin/systemctl # buildkit |
| COPY ./install-moonraker.sh install-moonraker.sh # buildkit |
| COPY ./moonraker/moonraker.conf printer_data/config/moonraker.conf # buildkit |
| RUN /bin/sh -c MOONRAKER_DISABLE_SYSTEMCTL=y ./install-moonraker.sh # buildkit |
| USER root |
| CMD ["/usr/bin/supervisord" "-n" "-c/etc/supervisor/supervisord.conf"] |