mirror of
https://github.com/HeyPuter/puter
synced 2024-11-14 22:06:00 +00:00
retry npm 3 times to account for the flakiness of the process
This commit is contained in:
parent
4daa1f2c25
commit
10d77f17aa
11
Dockerfile
11
Dockerfile
@ -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 -
|
||||
|
@ -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.*
|
Loading…
Reference in New Issue
Block a user