summaryrefslogtreecommitdiffstats
path: root/Services/nodejs/Dockerfile
diff options
context:
space:
mode:
authorstartxfr <clarue@startx.fr>2015-11-29 22:29:05 +0100
committerstartxfr <clarue@startx.fr>2015-11-29 22:29:05 +0100
commita4930f0838f1224bdf4fa0885e858e7a865513ca (patch)
treea9d95b08985c439f2b812382e3b4a36cc990e87f /Services/nodejs/Dockerfile
parenteb3d88b10a0feb302a9fd1ec60a7a92caebb856c (diff)
downloadphpmyadmin-a4930f0838f1224bdf4fa0885e858e7a865513ca.tar.gz
phpmyadmin-a4930f0838f1224bdf4fa0885e858e7a865513ca.tar.bz2
phpmyadmin-a4930f0838f1224bdf4fa0885e858e7a865513ca.tar.xz
phpmyadmin-a4930f0838f1224bdf4fa0885e858e7a865513ca.zip
reshappe nodejs container
Diffstat (limited to 'Services/nodejs/Dockerfile')
-rw-r--r--Services/nodejs/Dockerfile6
1 files changed, 4 insertions, 2 deletions
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]