Parameterise the UID of the worker user in the docker build file. (#517)

* Parameterise the UID of the worker user in the docker build file.

Signed-off-by: Alex Jones <alex.jones@unclealex.co.uk>

* Remove spurious use of ARG uid so that it only appears after the FROM statement.

Signed-off-by: Alex Jones <alex.jones@unclealex.co.uk>
This commit is contained in:
Alex Jones
2020-11-28 20:07:43 +00:00
committed by GitHub
parent c229c01a58
commit e59872716e
2 changed files with 3 additions and 2 deletions

View File

@@ -84,7 +84,7 @@ Building the Docker image locally is required in order to make it work on Arch L
To build the Docker image locally just issue the following command (it relies on the [Dockerfile](https://github.com/whipper-team/whipper/blob/develop/Dockerfile) included in whipper's repository):
`optical_gid=$(getent group optical | cut -d: -f3) docker build --build-arg optical_gid -t whipperteam/whipper .`
`optical_gid=$(getent group optical | cut -d: -f3) uid=$(id -u) docker build --build-arg optical_gid --build-arg uid -t whipperteam/whipper .`
It's recommended to create an alias for a convenient usage: