add node-build dockerfile ENV

main
ycz008 2024-02-01 18:04:20 +08:00
parent 8878b0d4fd
commit bb51c0d74d
1 changed files with 5 additions and 4 deletions

View File

@ -2,10 +2,11 @@ FROM node:16.17.1
LABEL beaconfire <beaconfireinc.com>
ENV PNPM_HOME="~/.pnpm" PATH="$PATH:$PNPM_HOME"
ENV PNPM_HOME="/root/.pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN apt-get update && \
apt-get install -y --no-install-recommends ca-certificates curl rsync && \
apt-get install -y --no-install-recommends ca-certificates curl && \
rm -rf /var/lib/apt/lists/ && \
git config --global --add safe.directory '*' && \
npm install -g pnpm
npm install -g pnpm && \
pnpm config set store-dir /root/.pnpm