Skip to content

Commit cbcde8d

Browse files
authored
chore(docker): exclude dynamic-plugins-root/ paths from the list of COPY commands in the dockerfile (#1912)
Signed-off-by: Nick Boldt <[email protected]>
1 parent 3179768 commit cbcde8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/update-Dockerfile.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ for dockerfile in ./docker/Dockerfile .rhdh/docker/Dockerfile; do
1414
# trim existing COPY lines
1515
sed -i "/# BEGIN COPY package.json files/,/# END COPY package.json files/c# BEGIN COPY package.json files\n# END COPY package.json files" $dockerfile
1616
# add new COPY lines
17-
for path in $(find . -name package.json | grep -v node_modules/ | sort -uV); do
17+
for path in $(find . -name package.json | grep -E -v "node_modules/|dynamic-plugins-root/" | sort -uV); do
1818
sed -i "s|\# BEGIN COPY package.json files|\# BEGIN COPY package.json files\nCOPY ${path/\./\$EXTERNAL_SOURCE_NESTED} $path|g" $dockerfile
1919
done
2020
done

0 commit comments

Comments
 (0)