title: Vue Vite cannot connect to docker container
body: <p>Hi I have install fresh app vue3 typescript + vite , my problem after building the image and spin the container. I cannot access the localhost:3000, the browser will just display</p>
  <blockquote>
  <p>The connection was reset</p>
  </blockquote>
  <pre><code> docker run --rm -it  -v %cd%/:/app/src -p 3000:3000 myvitets
  
  </code></pre>
  <p>Dockerfile</p>
  <pre><code>FROM node:14-buster-slim
  
  
  # make the 'app' folder the current working directory
  WORKDIR /app
  
  # copy both 'package.json' and 'package-lock.json' (if available)
  COPY package*.json ./
  
  RUN npm install
  
  
  # copy project files and folders to the current working directory (i.e. 'app' folder)
  COPY . .
  
  EXPOSE 3000
  
  CMD [ &quot;npm&quot;, &quot;run&quot;, &quot;dev&quot;]
  </code></pre>
  <p>I also add .dockerignore</p>
  <pre><code> node_modules/
  .git 
  .gitignore
  </code></pre>
  <p>can someone help me please how to run my app to the container..</p>
  <p>Thank you in advance.</p>