brmodeloweb / brmodelo-app

BRMW is a free open source entity-relationship database modeling tool. We're working to make learning database modeling simple and accessible for everyone.
https://www.brmodeloweb.com
Apache License 2.0
1.08k stars 47 forks source link

Docker image improvements #496

Closed Tarliton closed 9 months ago

Tarliton commented 9 months ago

This PR removes unnecessary commands in the Dockerfile such as mkdir (WORKDIR creates it if it's not there. Adding a cache to the yarn install command will speed up builds when updating any dependency.

The final image was being build with the data folder created by docker-compose mongo container and the .git folder, increasing its size. The image size went from 1.3~GB to around 400MB.

miltonbsn commented 9 months ago

@all-contributors please add @Tarliton for code and infra

allcontributors[bot] commented 9 months ago

@miltonbsn

I've put up a pull request to add @Tarliton! :tada: