Permalink
Browse files

feat(docker): cleaning up pkgs and enabling npm install for dev env (#…

  • Loading branch information...
1 parent 502143b commit e62b6808e033788feaeffbe691b711d1e9ce7931 @lirantal lirantal committed on GitHub Oct 30, 2016
Showing with 7 additions and 33 deletions.
  1. +4 −17 Dockerfile
  2. +3 −16 Dockerfile-production
View
@@ -18,34 +18,21 @@ ENV NODE_ENV development
# Install Utilities
RUN apt-get update -q \
- && apt-get install -yqq curl \
- wget \
- aptitude \
- htop \
- vim \
- git \
- traceroute \
- dnsutils \
+ && apt-get install -yqq \
curl \
+ git \
ssh \
- tree \
- tcpdump \
- nano \
- psmisc \
gcc \
make \
build-essential \
- libfreetype6 \
- libfontconfig \
libkrb5-dev \
- ruby \
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 curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
RUN sudo apt-get install -yq nodejs \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
@@ -72,4 +59,4 @@ RUN bower install --quiet --allow-root --config.interactive=false
COPY . /opt/mean.js
# Run MEAN.JS server
-CMD ["npm", "start"]
+CMD npm install && npm start
View
@@ -15,34 +15,21 @@ EXPOSE 80 443 3000 35729
# Install Utilities
RUN apt-get update -q \
- && apt-get install -yqq curl \
- wget \
- aptitude \
- htop \
- vim \
- git \
- traceroute \
- dnsutils \
+ && apt-get install -yqq \
curl \
+ git \
ssh \
- tree \
- tcpdump \
- nano \
- psmisc \
gcc \
make \
build-essential \
- libfreetype6 \
- libfontconfig \
libkrb5-dev \
- ruby \
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 curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
RUN sudo apt-get install -yq nodejs \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

0 comments on commit e62b680

Please sign in to comment.