You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue is that this takes forever to finish -> How should i cache this in gitpod.Dockerfile assuming that /workspace is removed after the docker build and that these deps seems to be stored directly on the repository?
Using tasks in .gitpod.yml is not an option since it takes same amount of time on startup and does not cache the result
The text was updated successfully, but these errors were encountered:
Kreyren
changed the title
How to cache yarn?
yarn: How to cache deps?
Jan 23, 2020
@svenefftinge I have enabled prebuilds, but when opening the workspace, it will always re-run the npm run develop step without caching between builds, which is taking a long time. Is there a way to run npm run develop automatically as part of the prebuild and cache specific folders between builds?
Specifically, for gatsby projects, it will speed up builds significantly (and reduce load on gitpod) if we are able to specify folders to cache between updates; public and .cache. Otherwise, each commit will require the workspace to reprocess all of the thumbnail images (which can take a very long time with limited resrouces).
I have this repo https://gitpod.io/#https://github.com/Kreyren/codesandbox-client/tree/rustlang_init which requires following commands
yarn
,yarn build
,yarn start
to have workable environment.The issue is that this takes forever to finish -> How should i cache this in
gitpod.Dockerfile
assuming that/workspace
is removed after the docker build and that these deps seems to be stored directly on the repository?Using
tasks
in.gitpod.yml
is not an option since it takes same amount of time on startup and does not cache the resultThe text was updated successfully, but these errors were encountered: