title: Docker + Node.js + Windows
body: <p><strong>What I want:</strong> dockerize a Node.js web app (I am on Windows)</p>
  
  <h3>Windows container</h3>
  
  <p><code>docker-compose up</code> gets me this error:</p>
  
  <pre><code>Service 'webapp' failed to build: no matching manifest for windows/amd64 in the manifest list entries
  </code></pre>
  
  <p>As far as I understand that is because there is no Node.js image for windows, and a fix would be to switch to Linux container.</p>
  
  <h3>Not enough memory</h3>
  
  <p>When I try to switch to a linux container, Docker tells me that I don't have enough memory. Changing the amount of allocated memory through the settings does not fix it.</p>
  
  <p>Edit: files</p>
  
  <p><code>docker-compose</code></p>
  
  <pre><code>version: '3'
  
  services:
    webapp:
      build: ./Front
      volumes:
        - ./Front:./dockerized
      ports:
       - 5001:8080
  </code></pre>
  
  <p><code>Dockerfile</code>:</p>
  
  <pre><code>FROM node:alpine
  
  RUN mkdir -p ../dockerized
  
  WORKDIR ../dockerized
  
  COPY package*.json ../dockerized
  
  RUN npm install
  
  COPY . ../dockerized
  
  EXPOSE 8080
  CMD [ "npm", "start" ]
  </code></pre>