Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

Commit

Permalink
Update Dockerfile development
Browse files Browse the repository at this point in the history
  • Loading branch information
FedeG committed Sep 8, 2016
1 parent 5587c15 commit 9d1a592
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,15 @@
FROM ubuntu:latest
MAINTAINER MEAN.JS

# 80 = HTTP, 443 = HTTPS, 3000 = MEAN.JS server, 35729 = livereload
EXPOSE 80 443 3000 35729

# Set development environment as default
ENV NODE_ENV development

# 80 = HTTP, 443 = HTTPS, 3000 = MEAN.JS server, 5858 = node debug, 35729 = livereload
EXPOSE 80 443 3000 5858 35729

# Install Utilities
RUN apt-get update -q && apt-get install -yqq curl sudo apt-utils && apt-get clean
RUN curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash - \
&& apt-get update -q \
&& apt-get install -yqq \
RUN apt-get update -q \
&& apt-get install -yqq curl \
wget \
aptitude \
htop \
Expand All @@ -41,16 +39,22 @@ RUN curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash - \
libfontconfig \
libkrb5-dev \
ruby \
nodejs \
sudo \
apt-utils \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

# Install nodejs
RUN curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
RUN sudo apt-get install -yq nodejs \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

# Install gem sass for grunt-contrib-sass
RUN gem install sass

# Install MEAN.JS Prerequisites
RUN npm install --quiet -g grunt-cli gulp gulp-cli bower yo mocha karma-cli pm2 \
&& npm cache clean
RUN npm install --quiet -g grunt-cli gulp bower yo mocha karma-cli pm2 && npm cache clean

RUN mkdir -p /opt/mean.js/public/lib
WORKDIR /opt/mean.js
Expand Down

0 comments on commit 9d1a592

Please sign in to comment.