entrypoint.sh 473 B

123456789101112131415161718
  1. #!/bin/sh
  2. docker --version >&2
  3. # add the node user to the docker group on the host
  4. DOCKER_GROUP=$(stat -c '%g' /var/run/docker.sock)
  5. groupadd --non-unique --gid ${DOCKER_GROUP} dockeronhost
  6. usermod -aG dockeronhost node
  7. # compatibility: initial volume setup
  8. chown node:node /app/cache
  9. chown node:node /app/compiles
  10. chown node:node /app/db
  11. # make synctex available for remount in compiles
  12. cp /app/bin/synctex /app/bin/synctex-mount/synctex
  13. exec runuser -u node -- "$@"