From a4930f0838f1224bdf4fa0885e858e7a865513ca Mon Sep 17 00:00:00 2001 From: startxfr Date: Sun, 29 Nov 2015 22:29:05 +0100 Subject: reshappe nodejs container --- Services/nodejs/Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Services/nodejs/Dockerfile') diff --git a/Services/nodejs/Dockerfile b/Services/nodejs/Dockerfile index 2113c64..43969a1 100644 --- a/Services/nodejs/Dockerfile +++ b/Services/nodejs/Dockerfile @@ -7,14 +7,16 @@ RUN dnf -y install nodejs npm python make gcc && \ ENV STARTUPLOG=/data/logs/nodejs/startup.log \ LOG_PATH=/data/logs/nodejs \ APP_PATH=/data/nodejs \ + TMP_APP_PATH=/tmp/nodejs \ APP_MAIN=/data/nodejs/app.js COPY *.sh /bin/ RUN chmod 775 /bin/run.sh && \ mkdir -p $APP_PATH && \ mkdir -p $LOG_PATH && \ touch $STARTUPLOG -COPY ./ $APP_PATH -RUN rm -f $APP_PATH/Dockerfile $APP_PATH/README.md $APP_PATH/run.sh $APP_PATH/docker-compose.yml +COPY *.json $TMP_APP_PATH/ +COPY *.js $TMP_APP_PATH/ +RUN cd $TMP_APP_PATH && npm install -production EXPOSE 8000 VOLUME [$APP_PATH,$LOG_PATH] -- cgit v1.2.3