retry npm 3 times to account for the flakiness of the process

This commit is contained in:
Nariman Jelveh 2024-07-09 15:12:19 -07:00
parent 4daa1f2c25
commit 10d77f17aa
2 changed files with 9 additions and 14 deletions

View File

@ -24,8 +24,15 @@ COPY package*.json ./
COPY . .
# Install node modules
RUN npm cache clean --force \
&& npm ci
RUN npm cache clean --force && \
for i in 1 2 3; do \
npm ci && break || \
if [ $i -lt 3 ]; then \
sleep 15; \
else \
exit 1; \
fi; \
done
# Run the build command if necessary
RUN cd src/gui && npm run build && cd -

View File

@ -1,12 +0,0 @@
all UI function calls from puter should be in the form `puter.ui.<function>`
e.g. `puter.showOpenFilePicker` becomes `puter.ui.showOpenFilePicker`
puter.FileSystem.<function> -> puter.fs.<function>
puter.Router.<function> -> puter.router.<function>
puter.Apps.<function> -> puter.apps.<function>
puter.setItem -> puter.kv.set
puter.getItem -> puter.kv.get
puter.removeItem -> puter.kv.del
puter.createCloudItem(...) -> new puter.CloudItem(...)
puter.router.* -> puter.hosting.*