title: docker npm install serve fails
body: <p>I'm not very familiar to docker, but I'm trying to put the frontend (written with create-react-app) into the docker container.
  I've found a tutorial and followed it, so my Dockerfile looks like this:</p>
  
  <pre><code>FROM node:7.8.0
  
  ENV NPM_CONFIG_LOGLEVEL warn
  
  RUN npm install -g serve
  CMD serve -s --port 8081 build
  EXPOSE 8081
  
  COPY package.json package.json
  COPY npm-shrinkwrap.json npm-shrinkwrap.json
  RUN npm install
  
  COPY . .
  
  RUN npm run build --production
  </code></pre>
  
  <p>In my machine it works ok, but when I try to put it on server (raspberry pi) with docker-compose it fails.</p>
  
  <pre><code>Step 3 : RUN npm install -g serve
  ERROR: Service 'frontend' failed to build: rpc error: code = 2 desc = "oci runtime error: exec format error"
  </code></pre>
  
  <p>I've googled, but haven't found exactly this problem. I even tried to put <code>sudo</code> before npm install, but got an error</p>
  
  <pre><code>/bin/sh: 1: sudo: not found
  </code></pre>