change root perm

This commit is contained in:
Siwat Sirichai 2024-02-14 00:04:00 +07:00
parent 6e516f2402
commit 6615b29380
2 changed files with 3 additions and 2 deletions

View File

@ -7,4 +7,3 @@ services:
- "7130:7130"
volumes:
- /var/printfarm/printer1:/opt/printstack/data
command: ["/bin/bash", "-c", "/opt/printstack/entrypoint.sh"]

View File

@ -68,5 +68,7 @@ RUN moonraker/scripts/install-moonraker.sh -d /opt/printstack/data/moonraker -z
# Daemons #
##########################
COPY entrypoint.sh /opt/printstack/entrypoint.sh
USER root
RUN chmod +x /opt/printstack/entrypoint.sh
USER printeruser
ENTRYPOINT ["/opt/printstack/entrypoint.sh"]