I am using docker to build and deploy the react-application. It takes a lot of time to build the docker almost 20-25 mins.
I tried to find out why it is taking so much time and find out that from step 9 to step 10. It is removing intermediate container and its taking 10 mins to do that.
05:39:57 | Step 9/18 : RUN cd /app/web && yarn install
05:43:38 | Done in 219.92s.
05:49:36 | Removing intermediate container 9ffd2edc0daa **TOOK almost 10 minutes to remove intermediate container**
05:49:36 | Step 10/18 : COPY . ./
Any idea/suggestion how to optimize this so it won't take this much time.
Thanks
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…