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"]