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

Commit

Permalink
feat(docker): cleaning up pkgs and enabling npm install for dev env (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
lirantal authored Oct 30, 2016
1 parent 502143b commit e62b680
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 33 deletions.
21 changes: 4 additions & 17 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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/*
Expand All @@ -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
19 changes: 3 additions & 16 deletions Dockerfile-production
Original file line number Diff line number Diff line change
Expand Up @@ -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/*
Expand Down

0 comments on commit e62b680

Please sign in to comment.