Comments (7)
I believe this should be possible by modifying the build command, to include the --no-clean
flag [docs]
Lines 24 to 25 in eea193a
- RUN yarn build --mode production
+ RUN yarn build --mode production --no-clean
I'll test that out this evening, and see if I can get a PR for you :)
from dashy.
Hi @Lissy93 , thank you for the quick reply and taking this on.
I saw the commit, but please correct me if I am wrong (I know nothing of nodejs/yarn/etc), but isn't the issue that docker command is:
Thank build-and-start
calls build
:
https://github.com/Lissy93/dashy/blob/master/package.json#L14
and that build
is missing the flag --no-clean
?
https://github.com/Lissy93/dashy/blob/master/package.json#L10
Even if you change the dockerfile the build call above will (try to) remove the directory at runtime?
from dashy.
Basically I tried this change locally (adding a couple of yarn scripts in the package.json):
And if they are there, in k8s I can override the command and call the no-clean option:
command:
- yarn
- build-no-clean-and-start
I am not doing the PR because I understand the change is horrible, and I don't expect to pollute the repo with every single user usecase ^^ But maybe the example can help finding a cleaner solution to allow the no-clean option?
from dashy.
Ah yes, you're right, it should go in the run stage, and not the build stage - so the package.json under build-and-start
command would work
from dashy.
Related Issues (20)
- [BUG] Outdated Docs HOT 3
- [BUG] <Collapsed setting persistant over diffrent pages> HOT 2
- [QUESTION] Something related to the status check of self-signed https services HOT 17
- use the latest version for component : v8:5.5.5 HOT 3
- [BUG] Widgets are not sending X-Api-Key and Authorization headers HOT 7
- [QUESTION] hideForKeycloakUsers not working HOT 2
- [BUG] Dashy not working again HOT 8
- [FEATURE_REQUEST] Hide Settings from Guests and Specific users HOT 5
- [BUG] Sharing Keycloak setup, not exactly a bug but certainly felt like one HOT 3
- [QUESTION] How to upgrade vom 2.x.x to 3.x.x? HOT 13
- [BUG] <title> HOT 4
- [BUG] user-defined-themes.scss broken in 3.0.1 HOT 2
- [BUG] Uptime-Kuma Widget Gives JSON Error and Fails to Load HOT 2
- [BUG] instructions for docker container on docker hub are incorrect HOT 2
- [BUG] Just upgraded and it never brings up the page. HOT 16
- [QUESTION] How to add a widget? HOT 1
- [BUG] iframe widget doesn't reload HOT 4
- [FEATURE_REQUEST] Proxmox usage HOT 5
- [QUESTION] theme for each user HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dashy.