From d039043c38b92a2fdc2b79213f83a2f2b84a080a Mon Sep 17 00:00:00 2001 From: startxfr Date: Sun, 17 May 2015 22:55:54 +0200 Subject: change in nodejs template --- Services/nodejs/Dockerfile | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'Services/nodejs/Dockerfile') diff --git a/Services/nodejs/Dockerfile b/Services/nodejs/Dockerfile index 872648a..9b76beb 100644 --- a/Services/nodejs/Dockerfile +++ b/Services/nodejs/Dockerfile @@ -3,15 +3,13 @@ MAINTAINER Christophe LARUE RUN yum -y install nodejs npm \ && yum clean all \ - && mkdir -p /var/nodejs /var/nodejs/app \ - && chmod ug+rx /var/nodejs/app -COPY sx/* /sx/ -COPY app/* /var/nodejs/app/ -RUN chmod ug+rx /sx/nodejs* + && mkdir -p /app \ + && chmod ug+rx /app +VOLUME ["/app"] +WORKDIR /app +COPY app /app +ENV MAIN_APP /app/app.js +ENV NODE_PATH /app/node_modules EXPOSE 8000 -VOLUME ["/var/nodejs/app"] - -ENV MAIN_APP /var/nodejs/app/app.js - -CMD ["/sx/nodejs_run.sh"] \ No newline at end of file +ENTRYPOINT ["node", "/app/app.js"] \ No newline at end of file -- cgit v1.2.3