title: Docker compose up --force-recreate --build uses caching but I don't want it to do so
body: <p>I have the following command to force recreate all my containers:</p>
  
  <pre><code>docker-compose up --force-recreate --build 
  </code></pre>
  
  <p>However, I still see the following lines*:</p>
  
  <pre><code>Step 6/10 : RUN cp environment-prod-docker.js environment.js
   ---&gt; Using cache
   ---&gt; e9a2354577ef
  Step 7/10 : RUN cat environment.js
   ---&gt; Using cache
   ---&gt; ccbc732030ea
  Step 8/10 : RUN npm ci --only=production
   ---&gt; Using cache
   ---&gt; 6baeabd30cf7
  </code></pre>
  
  <p>How can I disable that caching? (it does not rebuild my application for instance.)</p>
  
  <p>I have already found, that using this specific command on the given container do re-build it:</p>
  
  <pre><code> docker-compose build --no-cache
  </code></pre>
  
  <p>but for specific reasons, I need to use a one liner build'n'start command, so is there any way to produce this with <code>docker-compose up</code>?</p>
  
  <p>I am using docker-compose.yml version "3.4". </p>
  
  <p>*:The Dockerfile is like this: </p>
  
  <pre><code>...
  RUN cp environment-prod-docker.js environment.js
  RUN cat environment.js
  RUN npm ci --only=production
  ...
  </code></pre>