vchaptsev / cookiecutter-django-vue

Cookiecutter Django Vue is a template for Django-Vue projects.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

npm install fail on production

zessx opened this issue · comments

Following the README, I run docker-compose -f docker-compose-prod.yml build -d to try the production environment on an Ubuntu 18.04, but the npm install fails, I've no idea why (not very at ease with Node):

Building nginx
Step 1/12 : FROM node:10-alpine as build-deps
 ---> b328632eb00c
Step 2/12 : WORKDIR /app/
 ---> Running in 432e7ac8a9fe
Removing intermediate container 432e7ac8a9fe
 ---> 460fb3978585
Step 3/12 : COPY frontend/package.json frontend/package-lock.json /app/
 ---> f35a337c5092
Step 4/12 : RUN npm install
 ---> Running in c93071fc448f

> deasync@0.1.21 install /app/node_modules/deasync
> node ./build.js


ERROR: Service 'nginx' failed to build: The command '/bin/sh -c npm install' returned a non-zero code: 1

It appears I was running out of RAM.