That is a Dockerfile!
Check out Install Mattermost via Docker — Mattermost documentation See if that helps.
Specifically, try
docker exec -ti mattermost /bin/bash
From that terminal, you can examine logs and permissions and such within the running container.