Skip to content

Commit cfa3a4a

Browse files
committed
change Docker npm install process from npm ci to npm install
1 parent 2f146e5 commit cfa3a4a

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ WORKDIR /usr/src/app/backend
8282
# Bundle app source
8383
COPY ./backend .
8484

85-
RUN npm ci
85+
RUN npm install
86+
#RUN npm ci we changed to install because errorous npm building - we should revert this in some versions!
8687
# If you are building your code for production
8788
# RUN npm ci --only=production
8889

@@ -100,7 +101,8 @@ WORKDIR /usr/src/app/frontend
100101
COPY ./frontend/package*.json ./
101102

102103
# Install dependencies
103-
RUN npm ci --ignore-scripts
104+
RUN npm install --ignore-scripts
105+
#RUN npm ci --ignore-scripts we changed to install because errorous npm building - we should revert this in some versions!
104106

105107
# Install Angular CLI
106108
RUN npm install --ignore-scripts -g @angular/cli

frontend/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ WORKDIR /usr/src/app
99
COPY package*.json ./
1010

1111
# Install dependencies
12-
RUN npm ci --ignore-scripts
12+
RUN npm install --ignore-scripts
1313
#RUN npm install --force --ignore-scripts
1414

1515
# Install Angular CLI

0 commit comments

Comments
 (0)