From 41053aa0247a6655f85aefb1bd97cddc6ba4960c Mon Sep 17 00:00:00 2001 From: Koen Kanters Date: Mon, 24 Oct 2022 19:30:40 +0200 Subject: [PATCH] Set NODE_ENV to PRODUTION in Docker container. https://github.com/Koenkk/zigbee2mqtt/discussions/14625 --- docker/Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docker/Dockerfile b/docker/Dockerfile index 75742c7d6..5446fe92a 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -28,5 +28,7 @@ RUN mkdir /app/data ARG COMMIT RUN echo "$COMMIT" > dist/.hash +ENV NODE_ENV production + ENTRYPOINT ["docker-entrypoint.sh"] CMD [ "/sbin/tini", "--", "node", "index.js"] \ No newline at end of file