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

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

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"]