-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: install yarn via npm instead of corepack for incompatible tsserver
- Loading branch information
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,15 +46,15 @@ RUN mv /etc/xdg/nvim/pack/build-l7ide/start /out/plugins | |
FROM base AS tsserver-builder | ||
ENV NODE_OPTIONS='--no-network-family-autoselection --trace-warnings' | ||
RUN microdnf install -y --setopt=install_weak_deps=False npm \ | ||
&& npm i -gf corepack \ | ||
&& npm i -gf [email protected] \ | ||
&& mkdir -p /out \ | ||
&& chown 1002:1002 /out | ||
|
||
WORKDIR /build/typescript-language-server | ||
COPY --chown=1002:1002 contrib/typescript-language-server/ . | ||
ENV HOME=/tmp/1002-home | ||
USER 1002 | ||
RUN mkdir -p ${HOME} corepack enable \ | ||
RUN mkdir -p ${HOME} \ | ||
&& yarn install --frozen-lockfile --network-concurrency 10 \ | ||
&& yarn build \ | ||
&& yarn pack | ||
|