Configuration to run in a docker container #178
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This adds a Dockerfile to build the application and install ffmpeg so it can be run in a container. I have also updated the readme and added an example configuration for docker compose.
Inside the container the application is run as a non-priviledged user, so I have added some cli arguments to make it possible to work around any permission problems that may arise due to that:
--file-permissions
(or-fp
) and--directory-permissions
(or-dp
) to specify which mode is used to create files and directories.In addition I also added another option
--temp-directory
(or-td
) to specify a directory for temporary files which solves #175 for me.Disclaimer: This is the first time I did anything with go, so please excuse if I made any obvious mistakes in the code. It compiles and runs fine though, so hopefully everything should be ok.