summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2020-06-10 02:12:36 -0600
committerDan Allen <dan.j.allen@gmail.com>2020-06-10 02:12:36 -0600
commitae52f455949c7df3b9d5c5a65f5f7eddd79ab5e8 (patch)
tree239e02147555534e0dd357946a5aeaf6707814eb
parentac6016e3342b1c49affd81a90f20d84c1b74acca (diff)
replace --privileged option with :Z flag on volume mount when running container for subset-fonts script [skip ci]
-rwxr-xr-xscripts/subset-fonts.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/subset-fonts.sh b/scripts/subset-fonts.sh
index 6f3d2d5c..61f84d26 100755
--- a/scripts/subset-fonts.sh
+++ b/scripts/subset-fonts.sh
@@ -53,10 +53,10 @@ cp font-awesome-$FONT_AWESOME_VERSION/*.ttf .
cd ..
# NOTE build image using command found at top of Dockerfile.fontforge
-podman run --rm -t -u 0:0 --privileged \
+podman run --rm -t -u 0:0 \
-e "SOURCE_DATE_EPOCH=${SOURCE_DATE_EPOCH}" \
- -v `pwd`:/home/fontforge/scripts \
- -v `pwd`/$BUILD_DIR:/home/fontforge/scripts/build \
+ -v `pwd`:/home/fontforge/scripts:Z \
+ -v `pwd`/$BUILD_DIR:/home/fontforge/scripts/build:Z \
-w /home/fontforge/scripts \
localhost/fontforge:latest -script subset-fonts.pe $SOURCE_DIR build > /tmp/subset-fonts.log 2>&1