commit
a4bc68c470
|
@ -804,11 +804,16 @@ COPY ./.npmrc /home/laradock/.npmrc
|
||||||
# PNPM:
|
# PNPM:
|
||||||
###########################################################################
|
###########################################################################
|
||||||
|
|
||||||
USER laradock
|
USER root
|
||||||
|
|
||||||
ARG INSTALL_PNPM=false
|
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 \
|
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 \
|
npx pnpm add -g pnpm \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue