Skip to content

Commit

Permalink
fix: npm cache permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
cliffle committed Jan 23, 2024
1 parent c8b22a0 commit 8646444
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile.sakuli-base
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ ENV REFRESHED_AT=${BUILD_DATE} \
VNC_PW=vncpassword \
VNC_VIEW_ONLY=false \
IMG=taconsol/sakuli-base \
TESSDATA_PREFIX=/usr/local/share/tessdata
TESSDATA_PREFIX=/usr/local/share/tessdata \
npm_config_cache=/headless/.npm_cache

EXPOSE $VNC_PORT $NO_VNC_PORT

Expand Down Expand Up @@ -117,7 +118,7 @@ COPY ./src/common/env/ $STARTUPDIR/env

COPY ./src/common/firefox_profile/certificate-profile $HOME/firefox-certificates/
COPY ./src/common/chrome_certificate_store/ $HOME/.pki/
RUN mkdir -m 777 /headless/.config
RUN mkdir -m 777 /headless/.config && mkdir -m 777 /headless/.npm_cache && mkdir -m 777 /headless/.mozilla

RUN $INST_SCRIPTS/set_user_permission.sh $HOME

Expand All @@ -129,4 +130,3 @@ USER 1000:1000

### Install nvm
RUN $INST_SCRIPTS/nvm.sh $NODE_VERSION
RUN chmod 777 /headless/.npm && mkdir -m 777 /headless/.mozilla

0 comments on commit 8646444

Please sign in to comment.