Saturday, 10 June 2017

Docker(compose) installing nodejs broke npm

I need to use a container with nginx and nodejs, so I take the nginx container and install the node:

FROM nginx

ENV DEBIAN_FRONTEND noninteractive

WORKDIR /usr/src/app
VOLUME /usr/src/app


RUN apt-get update && \
  apt-get install -y apt-utils && \
  apt-get install -y --no-install-recommends curl sudo wget nano && \
  curl -sL https://deb.nodesource.com/setup_4.x | bash - && \
  apt-get install -y nodejs git build-essential && \
  whereis npm
  npm install grunt grunt-cli bower -g && \

whereis returnme nothing npm:, and npm install... crash the build proccess. so Where ir my mistake, is there a bug or anything? btw I'm using latest docker-compose and Docker version 17.03.1-ce, build c6d412e



via Daniel Fox

No comments:

Post a Comment