diff --git a/docs/Dockerfile b/docs/Dockerfile
index b017c579ce2f8a93b48bbc2f80f02b83c156143f..e98d26c65dd0923d2cd986698ea3edbba7c1ecd0 100644
--- a/docs/Dockerfile
+++ b/docs/Dockerfile
@@ -7,9 +7,10 @@ COPY . /iav
 WORKDIR /iav
 
 # build aot first && install webdriver & pptr
+RUN npm i 
+
 # parallel build-aot, update webdriver and install pptr
-RUN npm i && \
-    npm run build-aot & \
+RUN npm run build-aot & \
     npm run wd -- update --versions.chrome=80.0.3987.106 & \
     npm i --no-save puppeteer@2.1.0