File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -7,8 +7,11 @@ FROM apify/actor-node-playwright-chrome:18 AS builder
7
7
# to speed up the build using Docker layer cache.
8
8
COPY --chown=myuser package*.json ./
9
9
10
+ # Delete the prepare script. It's not needed in the final image.
11
+ RUN npm pkg delete scripts.prepare
12
+
10
13
# Install all dependencies. Don't audit to speed up the installation.
11
- RUN HUSKY=0 npm install --include=dev --audit=false
14
+ RUN npm install --include=dev --audit=false
12
15
13
16
# Next, copy the source files using the user set
14
17
# in the base image.
@@ -31,8 +34,9 @@ COPY --chown=myuser package*.json ./
31
34
# Install NPM packages, skip optional and development dependencies to
32
35
# keep the image small. Avoid logging too much and print the dependency
33
36
# tree for debugging
34
- RUN npm --quiet set progress=false \
35
- && HUSKY=0 npm install --omit=dev --omit=optional \
37
+ RUN npm pkg delete scripts.prepare \
38
+ && npm --quiet set progress=false \
39
+ && npm install --omit=dev --omit=optional \
36
40
&& echo "Installed NPM packages:" \
37
41
&& (npm list --omit=dev --all || true) \
38
42
&& echo "Node.js version:" \
You can’t perform that action at this time.
0 commit comments