From c99d86b8e34ecf669579d2c2056d25760469300f Mon Sep 17 00:00:00 2001 From: erikn69 Date: Tue, 21 Jun 2022 10:09:47 -0500 Subject: [PATCH] Fix tests --- workspace/Dockerfile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/workspace/Dockerfile b/workspace/Dockerfile index a67bc20..8e18acd 100644 --- a/workspace/Dockerfile +++ b/workspace/Dockerfile @@ -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