mirror of
https://github.com/ArchiveBox/ArchiveBox
synced 2024-11-22 12:13:05 +00:00
fix dockerfile global npm install location
This commit is contained in:
parent
613caec8eb
commit
2879bcb969
1 changed files with 6 additions and 5 deletions
11
Dockerfile
11
Dockerfile
|
@ -240,12 +240,13 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked,id=apt-$TARGETARCH$T
|
||||||
) | tee -a /VERSION.txt
|
) | tee -a /VERSION.txt
|
||||||
|
|
||||||
# Install Node dependencies
|
# Install Node dependencies
|
||||||
ENV PATH="/home/$ARCHIVEBOX_USER/.local/bin:$PATH"
|
ENV PATH="/home/$ARCHIVEBOX_USER/.npm/bin:$PATH"
|
||||||
USER $ARCHIVEBOX_USER
|
USER $ARCHIVEBOX_USER
|
||||||
RUN --mount=type=cache,target=/home/$ARCHIVEBOX_USER/.npm,sharing=locked,id=npm-$TARGETARCH$TARGETVARIANT,uid=$DEFAULT_PUID,gid=$DEFAULT_PGID \
|
WORKDIR "/home/$ARCHIVEBOX_USER/.npm"
|
||||||
echo "[+] Installing NPM extractor dependencies globally..." \
|
RUN --mount=type=cache,target=/home/$ARCHIVEBOX_USER/.npm_cache,sharing=locked,id=npm-$TARGETARCH$TARGETVARIANT,uid=$DEFAULT_PUID,gid=$DEFAULT_PGID \
|
||||||
&& npm config set prefix '~/.local/' \
|
echo "[+] Installing NPM extractor dependencies in /home/$ARCHIVEBOX_USER/.npm..." \
|
||||||
&& npm install --global --prefer-offline --no-fund --no-audit --cache /home/$ARCHIVEBOX_USER/.npm \
|
&& npm config set prefix "/home/$ARCHIVEBOX_USER/.npm" \
|
||||||
|
&& npm install --global --prefer-offline --no-fund --no-audit --cache "/home/$ARCHIVEBOX_USER/.npm_cache" \
|
||||||
"@postlight/parser@^2.2.3" \
|
"@postlight/parser@^2.2.3" \
|
||||||
"readability-extractor@github:ArchiveBox/readability-extractor" \
|
"readability-extractor@github:ArchiveBox/readability-extractor" \
|
||||||
"single-file-cli@^1.1.54" \
|
"single-file-cli@^1.1.54" \
|
||||||
|
|
Loading…
Reference in a new issue