kscalelabs / store

K-Scale Labs store
https://kscale.store
MIT License
35 stars 32 forks source link

[ FIX ]: Optimize Dockerfile for Layer Caching #209

Closed senthil-athiban closed 2 months ago

senthil-athiban commented 2 months ago

Current Behaviour

The current Dockerfile can be optimized to leverage Docker's layer caching mechanism, which can significantly reduce build times, especially when dependencies remain unchanged. By rearranging the instructions, we can ensure that dependency installation is cached separately from the application code changes.

Benefits:

senthil-athiban commented 2 months ago

@codekansas could you please assign me this issue.