There was an error while loading. Please reload this page.
1 parent eab0b55 commit 8b64acfCopy full SHA for 8b64acf
1 file changed
services/tenant-ui/Dockerfile
@@ -7,10 +7,10 @@ WORKDIR /usr/src/app
7
COPY package.json package-lock.json ./
8
COPY frontend/package.json frontend/package-lock.json ./frontend/
9
10
-# install backend libs
11
-RUN npm ci
+# install backend libs (clean the npm cache in the same layer so it isn't committed to the image)
+RUN npm ci && npm cache clean --force
12
# install frontend libs
13
-RUN cd frontend && npm ci
+RUN cd frontend && npm ci && npm cache clean --force
14
15
# Copy in the source - code changes only invalidate layers from here down
16
COPY . .
0 commit comments