Fix security labelling policy.

This commit is contained in:
Amit Watve
2020-01-17 14:53:48 -08:00
parent fd555f1012
commit 0027283127

View File

@@ -74,6 +74,8 @@ run_in_go_container() {
docker run \
`# docker options: remove container on exit, run as the host user / group` \
--rm --user "$(id -u):$(id -g)" \
`# disable SELinux relabelling /src` \
--security-opt label=disable \
`# golang caching: mount and use the cache volume` \
-v "${CACHE_VOLUME}:/go" -e XDG_CACHE_HOME=/go/cache \
`# mount the output & source dir, set working directory to the source dir` \