Skip to content

Commit

Permalink
Add node-red editor cache files
Browse files Browse the repository at this point in the history
  • Loading branch information
hardillb committed Dec 18, 2024
1 parent 36c4fae commit 83bbfe8
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
4 changes: 4 additions & 0 deletions flowforge-docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ RUN apk add --no-cache --virtual build-base g++ make py3-pip sqlite-dev python3

WORKDIR /usr/src/forge
RUN mkdir app bin etc var
WORKDIR /usr/src/forge/var
COPY install-device-cache.sh .
RUN ./install-device-cache.sh && rm install-device-cache.sh
WORKDIR /usr/src/forge
COPY package.json /usr/src/forge/app
WORKDIR /usr/src/forge/app
RUN npm install --production --no-audit --no-fund
Expand Down
20 changes: 20 additions & 0 deletions flowforge-docker/install-device-cache.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/sh -x

VERSION_LIST="4.0.0 4.0.1 4.0.2 4.0.3 4.0.4 4.0.5 4.0.7"

mkdir -p device/cache
cd device/cache

pwd

for V in $VERSION_LIST
do
echo $V
mkdir $V
ls -l
npm install --omit=dev --omit=optional --no-audit --no-fund --prefix "$V" "@node-red/editor-client@$V"
done

pwd
ls -l
du -sh

0 comments on commit 83bbfe8

Please sign in to comment.