We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85f05b9 commit 4b2ca98Copy full SHA for 4b2ca98
Dockerfile
@@ -37,12 +37,12 @@ targets=(
37
for base_dir in "${base_dirs[@]}"; do
38
for target in "${targets[@]}"; do
39
if [ -e "$base_dir/$target" ]; then
40
- cp -rf "$base_dir/$target" ${TMPDIR}/
+ cp -rf "$base_dir/$target" "${TMPDIR}/"
41
fi
42
done
43
44
45
-cp -RTf ./ ${TMPDIR}/
+cp -RTf ./ "${TMPDIR}/"
46
47
_SITE
48
@@ -68,8 +68,14 @@ RUN <<_SETUP
68
set -e
69
70
bundle install
71
+
72
+# Create a non-root user and transfer ownership
73
+useradd --no-create-home --shell /bin/bash jekyll
74
+chown -R jekyll:jekyll /app
75
_SETUP
76
77
+USER jekyll
78
79
# Expose the port that Jekyll will run on
80
EXPOSE 4000
81
0 commit comments