Skip to content

Speed up Dockerfile build time #172

Discussion options

You must be logged in to vote

Hello @useragent7,
as you mentioned Java, I assume you mean the built artifacts from the backend folder, right?
The docker build currently does not cache any build artifacts, neither from the backend nor the frontend.
This is the case because the backend and frontend are all built in one single step.
Because the whole coffee-editor workspace is copied before (see here), all following steps of the docker build have to be re-executed when ANY file in your workspace changes that is not excluded by the .dockerignore file (this is called cached invalidation in case you want to look it up).

An approach to improve caching could be the following:

  1. Copy only the files needed for the backend build,…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ndoschek
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants