Skip to content

Commit 21eae69

Browse files
committed
Update dockerfiles to use yarn install instead npm install
1 parent 9101aa1 commit 21eae69

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM sourcegraph/src-cli:3.39.1@sha256:418225d34348a80613a6a20c6c0203d95a74a33adc6fb6e6f45af84ff60beff0 AS src-cli
1+
FROM sourcegraph/src-cli:3.40.0
22

33
# Keep in sync with Dockerfile.autoindex
44
FROM node:17.7.1-alpine3.14@sha256:cbb62fa2f740959b173b180e4806a5e479fbbd7a20072c3d6b4283bf2b9951d1
@@ -9,6 +9,8 @@ RUN apk add --no-cache git
99

1010
COPY --from=src-cli /usr/bin/src /usr/bin
1111

12-
RUN npm install -g @sourcegraph/scip-typescript@${TAG}
12+
RUN npm install --global yarn
13+
14+
RUN yarn global add @sourcegraph/scip-typescript@${TAG}
1315

1416
CMD ["/bin/sh"]

Dockerfile.autoindex

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ COPY --from=src-cli /usr/bin/src /usr/bin
1111

1212
RUN echo 'scip-typescript "$@" --no-progress-bar' > /usr/bin/scip-typescript-autoindex && chmod +x /usr/bin/scip-typescript-autoindex
1313

14-
RUN npm install --global n@latest @sourcegraph/scip-typescript@latest
14+
RUN npm install --global yarn
15+
16+
RUN yarn global add @sourcegraph/scip-typescript@${TAG}
1517

1618
CMD ["/bin/sh"]

0 commit comments

Comments
 (0)