@@ -91,7 +91,7 @@ ENV NODE_OPTIONS=--use-openssl-ca
9191RUN --mount=type=cache,target=/var/cache/yum \
9292 dnf install -y https://rpm.nodesource.com/pub_16.x/el/9/x86_64/nodesource-release-el9-1.noarch.rpm && \
9393 dnf install -y nodejs && \
94- npm install --global yarn && \
94+ npm install --ignore-scripts -- global yarn && \
9595 yarn config set --global cafile ${PIP_CERT}
9696
9797
@@ -112,14 +112,14 @@ COPY --chown=${APP_USER}:${APP_USER} \
112112 anms-ui/server/package.json anms-ui/server/yarn.lock ${APP_WORK_DIR}/server/
113113RUN --mount=type=cache,uid=9999,gid=9999,target=/home/${APP_USER}/.cache/yarn \
114114 cd ${APP_WORK_DIR}/server && \
115- yarn install --immutable --immutable-cache
115+ yarn install --ignore-scripts -- immutable --immutable-cache
116116
117117# Install NodeJS UI Dependencies
118118COPY --chown=${APP_USER}:${APP_USER} \
119119 anms-ui/public/package.json anms-ui/public/yarn.lock ${APP_WORK_DIR}/public/
120120RUN --mount=type=cache,uid=9999,gid=9999,target=/home/${APP_USER}/.cache/yarn \
121121 cd ${APP_WORK_DIR}/public && \
122- yarn install --immutable --immutable-cache
122+ yarn install --ignore-scripts -- immutable --immutable-cache
123123
124124# Build Backend/Frontend
125125# These copies do not overwrite node_modules
@@ -129,7 +129,7 @@ RUN --mount=type=cache,uid=9999,gid=9999,target=/home/${APP_USER}/.cache/yarn \
129129 cd ${APP_WORK_DIR}/public && \
130130 yarn run build && \
131131 rm -rf ${APP_WORK_DIR}/public/node_modules && \
132- yarn install --immutable --immutable-cache --production
132+ yarn install --ignore-scripts -- immutable --immutable-cache --production
133133
134134COPY --chmod=755 anms-ui/docker-entrypoint.sh /usr/local/bin/docker-entrypoint
135135ENTRYPOINT ["docker-entrypoint" ]
@@ -286,9 +286,11 @@ ENV PIP_CERT=/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem
286286ENV PIP_DEFAULT_TIMEOUT=300
287287
288288
289- RUN dnf install -y epel-release && \
289+ RUN --mount=type=cache,target=/var/cache/yum \
290+ dnf install -y epel-release && \
290291 crb enable
291- RUN dnf install -y \
292+ RUN --mount=type=cache,target=/var/cache/yum \
293+ dnf install -y \
292294 gcc g++ \
293295 cmake ninja-build ruby pkg-config \
294296 flex libfl-static bison pcre2-devel civetweb civetweb-devel openssl-devel cjson-devel libpq-devel systemd-devel && \
@@ -350,7 +352,8 @@ RUN cd /usr/local/src/nm && \
350352# Runtime image for REFDM
351353FROM anms-base AS amp-manager
352354
353- RUN dnf install -y https://download.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm && \
355+ RUN --mount=type=cache,target=/var/cache/yum \
356+ dnf install -y https://download.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm && \
354357 crb enable && \
355358 dnf install -y \
356359 pcre2 civetweb openssl-libs cjson libpq
0 commit comments