Skip to content

Commit

Permalink
fix: install yarn via npm instead of corepack for incompatible tsserver
Browse files Browse the repository at this point in the history
  • Loading branch information
legobeat committed Jun 5, 2024
1 parent 840256f commit 353cce2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 353cce2

Please sign in to comment.