Merge pull request #987 from techniq/patch-1

Improve Dockerfile example/test
This commit is contained in:
Jose Diaz-Gonzalez committed 2015-02-19 13:54:42 -05:00
commit 07ae5190c3
1 file changed
+6 -3
+6 -3
View File
@@ -4,8 +4,11 @@ ENV DEBIAN_FRONTEND noninteractive
ENV DEBCONF_NONINTERACTIVE_SEEN true ENV DEBCONF_NONINTERACTIVE_SEEN true
EXPOSE 5000 EXPOSE 5000
ADD . /app
RUN apt-get install -y software-properties-common && add-apt-repository ppa:chris-lea/node.js && apt-get update RUN apt-get install -y software-properties-common && add-apt-repository ppa:chris-lea/node.js && apt-get update
RUN apt-get install -y build-essential curl postgresql-client-9.3 nodejs git RUN apt-get install -y build-essential curl postgresql-client-9.3 nodejs git
RUN cd /app && npm install
CMD cd /app && npm start COPY . /app
WORKDIR /app
RUN npm install
CMD npm start