HUB
Sign inSign up
rpi-mongodb-node logo

theotheu/rpi-mongodb-node

By theotheu

•Updated about 11 years ago

Raspberry pi 2 + MongoDb + Node.js

Image
2

10K+

theotheu/rpi-mongodb-node repository overview

# Dockerfile to build it yourself
FROM resin/rpi-raspbian

ENV DEBIAN_FRONTEND noninteractive

RUN apt-get update

###############################
# Configure timezone and locale
###############################
RUN echo "Europe/Amsterdam" > /etc/timezone; dpkg-reconfigure -f noninteractive tzdata
RUN apt-get install -y locales apt-utils
RUN echo en_US.UTF-8 UTF-8 > /etc/locale.gen
ENV LANGUAGE en_US:en
ENV LANG en_US.UTF-8
ENV LC_ALL en_US.UTF-8
RUN locale-gen en_US.UTF-8
RUN update-locale LANG=en_US.UTF-8
RUN DEBIAN_FRONTEND=noninteractive dpkg-reconfigure locales

###############################
# MongoDB
###############################
RUN apt-get install -y mongodb-server

RUN mkdir -p /data/db

# Expose MongoDB ports
EXPOSE 27017 28018

###############################
# Node.js
###############################
RUN apt-get update
RUN apt-get install -y wget build-essential python python-dev python-pip python-virtualenv
RUN wget http://nodejs.org/dist/node-latest.tar.gz
RUN tar xvzf node-latest.tar.gz
RUN cd node-v* && ./configure --without-snapshot && make && make install
RUN echo -e 'export PATH="node_modules/.bin:$PATH"' >> /root/.bashrc

# Expose Node.js ports
EXPOSE 1337 3000 3001 3002

# Define default command.
#CMD ["/usr/bin/mongod","--smallfiles"]
ENTRYPOINT usr/bin/mongod

Tag summary

Content type

Image

Digest

sha256:b1c7ce5f2…

Size

291.7 MB

Last updated

about 11 years ago

docker pull theotheu/rpi-mongodb-node