Merge pull request #3231 from erikn69/patch-1

Fix tests
This commit is contained in:
Shao Yu-Lung (Allen) 2022-07-17 12:36:39 +08:00 committed by GitHub
commit a4bc68c470
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -804,11 +804,16 @@ COPY ./.npmrc /home/laradock/.npmrc
# PNPM:
###########################################################################
USER laradock
USER root
ARG INSTALL_PNPM=false
ENV PNPM_HOME="/home/laradock/.local/share/pnpm"
ENV PATH $PATH:/home/laradock/.local/share/pnpm
RUN if [ ${INSTALL_PNPM} = true ]; then \
echo "" >> ~/.bashrc && \
echo 'export PNPM_HOME="/home/laradock/.local/share/pnpm"' >> ~/.bashrc && \
echo 'export PATH="$PNPM_HOME:$PATH"' >> ~/.bashrc && \
npx pnpm add -g pnpm \
;fi