Skip to content

Commit 149f39e

Browse files
authored
Update Dockerfile
1 parent 7cc2eab commit 149f39e

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

Dockerfile

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -41,18 +41,20 @@ RUN npm ci --no-optional
4141

4242
# Removes unnecessary files/folders in node modules
4343
# Files
44-
RUN find "$(pwd)/node_modules" -type f -name "*.ts" -exec rm -f {} \;
45-
RUN find "$(pwd)/node_modules" -type f -name "*.md" -exec rm -f {} \;
46-
RUN find "$(pwd)/node_modules" -type f -name "*.swp" -exec rm -f {} \;
47-
RUN find "$(pwd)/node_modules" -type f -name "LICENSE" -exec rm -f {} \;
48-
RUN find "$(pwd)/node_modules" -type f -name "AUTHORS" -exec rm -f {} \;
49-
RUN find "$(pwd)/node_modules" -type f -name "CONTRIBUTORS" -exec rm -f {} \;
50-
RUN find "$(pwd)/node_modules" -type f -name "CHANGES" -exec rm -f {} \;
51-
RUN find "$(pwd)/node_modules" -type f -name ".prettierrc*" -exec rm -f {} \;
52-
RUN find "$(pwd)/node_modules" -type f -name ".npm*" -exec rm -f {} \;
53-
RUN find "$(pwd)/node_modules" -type f -name ".travis.yml" -exec rm -f {} \;
54-
RUN find "$(pwd)/node_modules" -type f -name "appveyor.yml" -exec rm -f {} \;
55-
RUN find "$(pwd)/node_modules" -type f -name "*.coveralls.yml" -exec rm -f {} \;
44+
RUN find "$(pwd)/node_modules" -type f \( \
45+
-name "*.ts" -o \
46+
-name "*.md" -o \
47+
-name "*.swp" -o \
48+
-name ".npm*" -o \
49+
-name "LICENSE" -o \
50+
-name "AUTHORS" -o \
51+
-name "CONTRIBUTORS" -o \
52+
-name "CHANGES" -o \
53+
-name ".prettierrc*" -o \
54+
-name ".travis.yml" -o \
55+
-name "appveyor.yml" -o \
56+
-name ".coveralls.yml" \
57+
\) -exec rm -f {} \;
5658

5759
# Folders
5860
RUN find "$(pwd)/node_modules" -type d -name "docs?" -prune -exec rm -rf {} +;

0 commit comments

Comments
 (0)