Skip to content

Commit 9ef9414

Browse files
authored
fix: yarn install on docker PL-92 (#1253)
* fix: yarn install on docker * fix: sonar complaint about https
1 parent 5ab7ea9 commit 9ef9414

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

Dockerfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,17 @@ WORKDIR /servicemap-ui
55

66
USER root
77

8+
RUN curl --fail --silent --proto '=https' --tlsv1.2 https://dl.yarnpkg.com/rpm/yarn.repo \
9+
--output /etc/yum.repos.d/yarn.repo
10+
RUN yum -y install yarn
11+
812
RUN chown -R default:root /servicemap-ui
913

1014
# Install app dependencies
1115
COPY --chown=default:root --chmod=444 package.json yarn.lock /servicemap-ui/
1216

13-
RUN yarn install --frozen-lockfile
17+
# Install dependencies
18+
RUN yarn && yarn cache clean --force
1419

1520
COPY --chown=default:root . /servicemap-ui/
1621

0 commit comments

Comments
 (0)