This makes a minor change to the Dockerfile to change the default
location of the Gophish database within the docker container to be in
its own directory (./data/). This would allow for that directory to be
bind mounted making it easier to persist the database over container
restarts. Attempting to bind mount just the database file is problematic
if the file doesn't yet exist, as Docker will create a directory instead
of the file and Gophish won't be able to create the database file.
This should help to address issues that are brought up periodically
regarding database persistence in Docker (e.g. #2764#1969#2416)
The Dockerfile has also been rebuilt to use an unprivileged user instead
of root.
The run script adds more options and changes the method the
configuration is overwritten, which may help in situations where the
configuration is not owned by the unprivileged user.