Public Repository

Last pushed: 2 years ago
Short Description
ARMv7 version of Nodejs
Full Description

##Dockerfile

#
# armhf-nodejs Dockerfile
#
# https://hub.docker.com/r/aerodame/armhf-nodejs
#

# Pull base image.
FROM armv7/armhf-ubuntu_core

# Install nodejs.
RUN \
  apt-get -y update && \
  cd /tmp && \
  apt-get install -y apt-utils && \
  apt-get install -y build-essential && \
  apt-get install -y python && \
  apt-get install -y wget && \
  wget http://zlib.net/zlib-1.2.8.tar.gz && \
  tar zxvf zlib-1.2.8.tar.gz && \
  cd zlib-1.2.8 && \
  ./configure && \
  make && \
  make install && \
  cd .. && \
  wget https://nodejs.org/dist/v4.0.0/node-v4.0.0.tar.gz &&\
  tar xzvf node-v4.0.0.tar.gz && \
  cd node-v4.0.0/ && \
  ./configure && \
  make && \
  make install

# Bundle our app files source into /usr/app
RUN mkdir -p /usr/app
COPY  . /usr/app

VOLUME .:/usr/app

# Install app dependencies
RUN cd /usr/app; npm install

EXPOSE  8080

# runtime => 'node', and the path to our app
CMD ["node","/usr/app/index.js"]
Docker Pull Command
Owner
aerodame

Comments (0)