fix: remove ports an some comments.

Signed-off-by: vajonam <152501+vajonam@users.noreply.github.com>
This commit is contained in:
vajonam
2024-04-03 09:39:49 -04:00
parent 7fde29ba73
commit f1011cba68
2 changed files with 9 additions and 6 deletions

View File

@ -72,14 +72,15 @@ COPY entrypoint.sh /entrypoint.sh
COPY menu.xml /etc/xdg/openbox/
COPY supervisord.conf /etc/
# HTTP Port
EXPOSE 8080
# VNC Port
EXPOSE 5900
# Needs to be ran with HOST networking so this are no longer needed.
# # HTTP Port
# EXPOSE 8080
# # VNC Port
# EXPOSE 5900
VOLUME /configs/
VOLUME /prints/
ENTRYPOINT ["/entrypoint.sh"]
CMD ["bash", "-c", "chown -R slic3r:slic3r /home/slic3r/ /configs/ /prints/ /dev/stdout && exec gosu slic3r supervisord"]

View File

@ -15,5 +15,7 @@ else
export VNC_SEC="-securitytypes TLSNone,X509None,None"
fi
export LOCALFBPORT=$((5900 + DISPLAY_NUMBER))
export VGLRUN=vglrun
export VGLRUN=/usr/bin/vglrun
# fix perms and launch supervisor with the above environment variables
chown -R slic3r:slic3r /home/slic3r/ /configs/ /prints/ /dev/stdout && exec gosu slic3r supervisord # -e TRACE