Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

Change npm --no-optional to --omit=optional

Michael Shamoonb4de83e34886
diff --git a/Dockerfile b/Dockerfile
index 2c4bbefe5..b1ff73181 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -26,7 +26,7 @@ COPY ./src-ui /src/src-ui
WORKDIR /src/src-ui
RUN set -eux \
&& npm update npm -g \
- && npm ci --no-optional
+ && npm ci --omit=optional
RUN set -eux \
&& ./node_modules/.bin/ng build --configuration production
diff --git a/docker-builders/Dockerfile.frontend b/docker-builders/Dockerfile.frontend
index 26f6c9e15..e552ee184 100644
--- a/docker-builders/Dockerfile.frontend
+++ b/docker-builders/Dockerfile.frontend
@@ -9,6 +9,6 @@ COPY ./src-ui /src/src-ui
WORKDIR /src/src-ui
RUN set -eux \
&& npm update npm -g \
- && npm ci --no-optional
+ && npm ci --omit=optional
RUN set -eux \
&& ./node_modules/.bin/ng build --configuration production