This repository has been archived by the owner on Oct 5, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 345
Clean Yarn cache from Docker image #14
Comments
Sounds like a good idea to do this... --production will not install devDependencies which should be OK. |
It should work if we install It could be worth to investigate yarn autoclean for this matter as well. |
RFC to avoid using yarn cache: yarnpkg/rfcs#53 - discussed how to work it around for different cases |
I've tried to remove
To use |
akosyakov
added a commit
that referenced
this issue
Jan 5, 2018
Signed-off-by: Anton Kosiakov <anton.kosyakov@typefox.io>
akosyakov
added a commit
that referenced
this issue
Jan 5, 2018
Signed-off-by: Anton Kosiakov <anton.kosyakov@typefox.io>
JanKoehnlein
added a commit
that referenced
this issue
Jan 5, 2018
JanKoehnlein
added a commit
that referenced
this issue
Jan 5, 2018
GH-14 remove yarn cache within same docker RUN step...
We've managed to reduce the size of
Docker file is here: https://github.com/theia-ide/theia-apps/blob/master/theia-docker/Dockerfile |
This was referenced Jan 5, 2018
Closed
marcdumais-work
pushed a commit
that referenced
this issue
Aug 3, 2018
Signed-off-by: Anton Kosiakov <anton.kosyakov@typefox.io>
marcdumais-work
pushed a commit
that referenced
this issue
Aug 3, 2018
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The Theia docker image is pretty big. When I dug into it, there's 335Mb in the Yarn cache that is pulled in during build and then never used again. I've found some other projects that have added "&& yarn clear cache" to their docker builds, which would clean this up and reduce the image size by 335Mb.
Also noticed the --production=true flag while I was investigating this, not sure if that would speed up the build or remove unnecessary dependencies too.
The text was updated successfully, but these errors were encountered: