From 34a139040c6d9029559b89530afdd87b9a747caa Mon Sep 17 00:00:00 2001 From: Petr Sloup Date: Tue, 4 Apr 2017 18:45:26 +0200 Subject: [PATCH] Slight docker performance optimization --- Dockerfile | 2 ++ Dockerfile_light | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Dockerfile b/Dockerfile index b30fb81..7aeef1d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -26,5 +26,7 @@ RUN cd /usr/src/app && npm install --production VOLUME /data WORKDIR /data +ENV NODE_ENV="production" + EXPOSE 80 ENTRYPOINT ["/usr/src/app/run.sh"] diff --git a/Dockerfile_light b/Dockerfile_light index 79898d6..9f1f18d 100644 --- a/Dockerfile_light +++ b/Dockerfile_light @@ -8,5 +8,7 @@ RUN cd /usr/src/app && npm install --production VOLUME /data WORKDIR /data +ENV NODE_ENV="production" + EXPOSE 80 ENTRYPOINT ["node", "/usr/src/app/", "-p", "80"]