title: How to put Svelte build into Docker image
body: <p>Consider this file structure:</p>
  <pre><code>dist/
    node_modules/
    public/
      build/
        bundle.css
        bundle.js
      favicon.png
      global.css
      index.html
  Dockerfile
  package.json
  rollup.config.js
  </code></pre>
  <p>I wanna create an Node 10 docker image which runs <code>npm start</code> executing <code>node_modules/.bin/sirv public</code></p>
  <p>Current attempt in Dockerfile:</p>
  <pre><code>FROM node:10-alpine
  
  WORKDIR /app
  COPY ./dist ./
  COPY package.json ./
  COPY rollup.config.js ./
  EXPOSE 5000
  ENV HOST=0.0.0.0
  CMD [ &quot;npm&quot;, &quot;start&quot; ]
  </code></pre>
  <p>After building the image with <code>docker build -t svelte-docker .</code>, <code>docker run -p 5000:5000 svelte-docker</code> results in this error:</p>
  <pre><code>&gt; svelte-app@1.0.0 start /app
  &gt; sirv public
  
  internal/modules/cjs/loader.js:638
      throw err;
      ^
  
  Error: Cannot find module './index'
  ...
  </code></pre>
  <p>Any idea?</p>