diff --git a/docker/Dockerfile.amd64 b/docker/Dockerfile.amd64 index 13ed7f2de..4d0248573 100644 --- a/docker/Dockerfile.amd64 +++ b/docker/Dockerfile.amd64 @@ -13,7 +13,7 @@ RUN echo "{\"hash\": \"$COMMIT\"}" > .hash.json # Install dependencies RUN apk add --update --no-cache make gcc g++ python linux-headers udev nodejs npm git && \ - npm install --unsafe-perm && \ + npm install --unsafe-perm --production && \ apk del make gcc g++ python linux-headers udev git # Entrypoint diff --git a/docker/Dockerfile.arm32v6 b/docker/Dockerfile.arm32v6 index 8396b457e..27c3f3f20 100644 --- a/docker/Dockerfile.arm32v6 +++ b/docker/Dockerfile.arm32v6 @@ -15,7 +15,7 @@ RUN [ "qemu-arm-static", "/bin/sh", "-c", \ "cp /app/data/configuration.yaml /app && \ cp /app/docker/run.sh /app && chmod +x /app/run.sh && \ apk add --update --no-cache make gcc g++ python linux-headers udev nodejs npm git && \ - npm install --unsafe-perm && \ + npm install --unsafe-perm --production && \ apk del make gcc g++ python linux-headers udev git"] # Entrypoint diff --git a/docker/Dockerfile.arm64v8 b/docker/Dockerfile.arm64v8 index 2601e3931..55555e6f5 100644 --- a/docker/Dockerfile.arm64v8 +++ b/docker/Dockerfile.arm64v8 @@ -15,7 +15,7 @@ RUN [ "qemu-aarch64-static", "/bin/sh", "-c", \ "cp /app/data/configuration.yaml /app && \ cp /app/docker/run.sh /app && chmod +x /app/run.sh && \ apk add --update --no-cache make gcc g++ python linux-headers udev nodejs npm git && \ - npm install --unsafe-perm && \ + npm install --unsafe-perm --production && \ apk del make gcc g++ python linux-headers udev git"] # Entrypoint