diff options
author | startxfr <clarue@startx.fr> | 2016-02-10 00:34:54 +0100 |
---|---|---|
committer | startxfr <clarue@startx.fr> | 2016-02-10 00:34:54 +0100 |
commit | 15b722730988b24aa31d9e3b6e27b66907b4699d (patch) | |
tree | 29b575f580d5c68263a275cca3d3e9f82204d1a6 /Services/nodejs/Dockerfile | |
parent | 8cce768b6270ec40efa0fde80c5c5b3814a38f20 (diff) | |
download | phpmyadmin-15b722730988b24aa31d9e3b6e27b66907b4699d.tar.gz phpmyadmin-15b722730988b24aa31d9e3b6e27b66907b4699d.tar.bz2 phpmyadmin-15b722730988b24aa31d9e3b6e27b66907b4699d.tar.xz phpmyadmin-15b722730988b24aa31d9e3b6e27b66907b4699d.zip |
update nodejs
Diffstat (limited to 'Services/nodejs/Dockerfile')
-rw-r--r-- | Services/nodejs/Dockerfile | 15 |
1 files changed, 8 insertions, 7 deletions
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 |