File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -5,11 +5,12 @@ ENV HOME /home/${USERNAME}
55RUN useradd -ms /bin/bash ${USERNAME}
66
77WORKDIR ${HOME}/time-tracker-ui
8+ COPY package.json package-lock.json ./
9+ RUN npm cache clean --force && npm install
810COPY . .
911RUN chown ${USERNAME}:${USERNAME} -R ${HOME}/time-tracker-ui \
1012 && chmod -R 777 ${HOME}/time-tracker-ui
1113
1214USER ${USERNAME}
13- RUN npm cache clean --force && npm install
1415EXPOSE 4200
1516CMD ${HOME}/time-tracker-ui/node_modules/.bin/ng serve --host 0.0.0.0 --disableHostCheck
Original file line number Diff line number Diff line change @@ -34,12 +34,13 @@ RUN mkdir -p /opt/selenium \
3434RUN useradd -ms /bin/bash ${USERNAME}
3535
3636WORKDIR ${HOME}/time-tracker-ui
37+ COPY package.json package-lock.json ./
38+ RUN npm cache clean --force && npm install
3739COPY . .
3840RUN chown ${USERNAME}:${USERNAME} -R ${HOME}/time-tracker-ui
3941RUN chmod -R 777 ${HOME}/time-tracker-ui
4042
4143USER ${USERNAME}
4244EXPOSE 4200
4345EXPOSE 9876
44- RUN npm cache clean --force && npm install
4546CMD npm run ci-test
You can’t perform that action at this time.
0 commit comments