UPDATE: Default Dockerfile has been modified to use non-root user - www-data. Thus, just follow the instructions provided in README.

By default, the root user is used for WebSpellChecker deployed as a Docker container from the default image or a custom one created from the Dockerfile. You have an option to use non-root user - www-data.

www-data is the user that web servers on Ubuntu (Apache, nginx, for example) use by default for normal operation.

Below is the guidance on how to proceed with www-data user.

1. Open Dockerfile for editing. At the end of the RUN command, add the following lines: 

mkdir -p /var/lib/wsc/license &&\ 
chown -R www-data:www-data /var/lib/wsc/license /var/run/apache2 /var/log/apache2 /var/lock/apache2

The first line creates a folder for the license.
The second line allows the www-data user to use the license and folders for the Apache functions.

2. Create a Docker image from the modified file.
2. Start the container using www-data user.

docker run -d -p 80:80 -u www-data webspellchecker/wproofreader