Docker build error

When I tried to build with docker, the following exception occurred.

step

  1. git clone https://github.com/getredash/redash.git
  2. cd redash/
  3. docker-compose up -d

error

Building server
Step 1/18 : FROM node:10 as frontend-builder
 ---> f7949667ac49
Step 2/18 : WORKDIR /frontend
 ---> Using cache
 ---> eb81106e55fc
Step 3/18 : COPY package.json package-lock.json /frontend/
 ---> Using cache
 ---> 872b311d01d2
Step 4/18 : RUN npm install
 ---> Using cache
 ---> 7eaf0c38003c
Step 5/18 : COPY client /frontend/client
 ---> Using cache
 ---> ada93afcf399
Step 6/18 : COPY webpack.config.js /frontend/
 ---> Using cache
 ---> b780ef345423
Step 7/18 : RUN npm run build
 ---> Running in 0f5f44355b25

> redash-client@8.0.0-beta build /frontend
> npm run clean && NODE_ENV=production node --max-old-space-size=4096 node_modules/.bin/webpack


> redash-client@8.0.0-beta clean /frontend
> rm -rf ./client/dist/

Browserslist: caniuse-lite is outdated. Please run next command `npm update caniuse-lite browserslist`
Killed
npm ERR! code ELIFECYCLE
npm ERR! errno 137
npm ERR! redash-client@8.0.0-beta build: `npm run clean && NODE_ENV=production node --max-old-space-size=4096 node_modules/.bin/webpack`
npm ERR! Exit status 137
npm ERR! 
npm ERR! Failed at the redash-client@8.0.0-beta build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2019-09-06T03_31_24_866Z-debug.log
ERROR: Service 'server' failed to build: The command '/bin/sh -c npm run build' returned a non-zero code: 137

Welcome to the forum. The stack trace tells you how to fix this:

Browserslist: caniuse-lite is outdated. Please run next command `npm update caniuse-lite browserslist`

Another user had the same issue here.

I think this is related with this .
You need to give you docker daemon more RAM