From 15b722730988b24aa31d9e3b6e27b66907b4699d Mon Sep 17 00:00:00 2001 From: startxfr Date: Wed, 10 Feb 2016 00:34:54 +0100 Subject: update nodejs --- Services/nodejs/Dockerfile | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'Services/nodejs/Dockerfile') diff --git a/Services/nodejs/Dockerfile b/Services/nodejs/Dockerfile index 74fec14..2f9e8f5 100644 --- a/Services/nodejs/Dockerfile +++ b/Services/nodejs/Dockerfile @@ -6,18 +6,19 @@ RUN dnf -y install nodejs npm python make gcc && \ dnf clean all ENV STARTUPLOG=/logs/startup.log \ LOG_PATH=/logs \ - APP_PATH=/data \ - TMP_APP_PATH=/tmp/nodejs \ - APP_MAIN=/data/app.js + DATA_PATH=/data \ + APP_PATH=/app \ + APP_MAIN=/app/app.js COPY *.sh /bin/ RUN chmod 775 /bin/run.sh && \ mkdir -p $APP_PATH && \ + mkdir -p $DATA_PATH && \ mkdir -p $LOG_PATH && \ touch $STARTUPLOG -COPY *.json $TMP_APP_PATH/ -COPY *.js $TMP_APP_PATH/ -RUN cd $TMP_APP_PATH && npm install -production +COPY *.json $APP_PATH/ +COPY *.js $APP_PATH/ +RUN cd $APP_PATH && npm install -production EXPOSE 8000 -VOLUME [$APP_PATH,$LOG_PATH] +VOLUME [$DATA_PATH,$LOG_PATH] CMD ["/bin/run.sh"] \ No newline at end of file -- cgit v1.2.1