title: Trying to publish build artifact from docker to host system
body: <p>I'm trying to publish some artifacts to my host system, but I can't work out how to do it:</p>
  
  <p><code>./docker/client/Dockerfile</code></p>
  
  <pre><code>FROM node:alpine
  RUN mkdir -p /test
  RUN echo "hi" &gt; /test/log.txt
  VOLUME /test
  EXPOSE 3000
  </code></pre>
  
  <p><code>./docker-compose.yml</code></p>
  
  <pre><code>version: '3'
  services:
    platform-app-frontend:
      image: platform-app-frontend
      build: docker/client
      volumes:
        - ./client/test:/test
      ports:
        - '3100:3100'
  </code></pre>
  
  <p>And I run using:</p>
  
  <pre><code>docker-compose up --build platform-app-frontend &amp;&amp; ls docker/client/test
  </code></pre>
  
  <p>But there is no file in <code>docker/client/test</code></p>
  
  <p><strong>EDIT</strong> Comments suggested 2 methods, using <code>ENTRYPOINT</code> or using <code>docker cp</code>.</p>
  
  <p>I liked <code>ENTRYPOINT</code> as it was contiend within the <code>Dockerfile</code>,  but alas it was too slow. So I ended up using <code>docker cp</code></p>