title: Docker-compose on Vite
body: <p>I am dockering a Vite app with Vue. When I run <code>yarn dev</code>from my system, everything is Ok, but when I launch the same command from my dockerfile, I got the following error</p>
  <pre><code>yarn run v1.22.5
  
  warning package.json: No license field
  
  $ vite
  
  failed to load config from /app/vite.config.ts
  
  error when starting dev server:
  
  Error: spawn Unknown system error -8
  
  </code></pre>
  <p>My dockerfile is</p>
  <pre><code>FROM node:14.16.0-alpine3.13
  
  WORKDIR /app
  
  COPY . .
  
  CMD [&quot;yarn&quot;, &quot;dev&quot;]
  </code></pre>
  <p>And my docker-compose.yml is</p>
  <pre><code>version: '3.8'
  
  services:
    client:
      build: 
        context: ./dockerfiles
        dockerfile: client.dockerfile
      volumes:
        - ./client:/app
      ports:
        - '3000:3000'
  </code></pre>
  <p>My folder structure is</p>
  <pre><code>client
  |-public
  |-src
  |-node_modules
  |-package.json
  |-vite.config.ts
  |- ... rest of files
  dockerfiles
  |-client.dockerfile
  docker-compose.yml (at root level)
  </code></pre>