summaryrefslogtreecommitdiffstats
path: root/Services/nodejs/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'Services/nodejs/Dockerfile')
-rw-r--r--Services/nodejs/Dockerfile15
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