Getting error installing nodejs when building from docker

I am trying to install nodejs using the docker console for ubuntu but I get an error installing node js. This is the error I am getting

The command [/bin/sh -c ./configure && make && make install] returned a non-zero code: 127

This is part of my dockerfile

  • How to list all the commands that executed on a pulled Docker image?
  • Installing specific version of node.js and npm in ubuntu image with Dockerfile
  • Connect to Docker Machine remotely in Docker Toolbox
  • Docker network issues with nginx proxy container
  • How to stop slapd within Dockerfile?
  • Continuous integration from a git lab repository to an amazon server
  • FROM ubuntu:12.04
    RUN mkdir -p /dir/subdir
    RUN apt-get update
    # Install nodejs
    ADD /dir
    WORKDIR /dir/node-v0.10.26-linux-x64
    RUN ./configure && make && make install
    WORKDIR /dir

  • shared folder doesn't contain data
  • Docker flask uwsgi 404 on a remote host
  • Use custom docker binary in CoreOS
  • Docker for GUI-based environments?
  • ImportError: No module named ssl_match_hostname when importing the docker SDK for Python
  • Run apache in both host machine and docker container on 80 port
  • One Solution collect form web for “Getting error installing nodejs when building from docker”

    Exit code 127 typically means “command not found”. Chances are build-essentials are not installed.

    Try adding the following after the apt-get update:

    RUN apt-get -y install build-essential
    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.