Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker image bloat #13

Open
phillipjf opened this issue Oct 10, 2024 · 1 comment
Open

Docker image bloat #13

phillipjf opened this issue Oct 10, 2024 · 1 comment
Assignees

Comments

@phillipjf
Copy link
Contributor

I pulled down the latest image (beta-0.2) expecting it to match what I had built locally (#11) but it seems like there's some additional files being included. It looks like you are building from your local repo which has some extra directories and files that are bumping up the image size (specifically samples with >100MB of audio files). Can you pull a fresh clone of the repo and re-publish an image? I would like to look at adding some github actions to build and publish if you'd be interested.

REPOSITORY                     TAG             IMAGE ID       CREATED        SIZE
ghcr.io/rishikanthc/scriberr   beta-0.2        80f187cb6faf   21 hours ago   3.23GB
scriberr-scriberr              latest          1877ad467e05   38 hours ago   1.33GB
docker run -it ghcr.io/rishikanthc/scriberr:beta-0.2 /bin/sh
/app # du -h -d1
201.5M	./node_modules
7.6M	./.svelte-kit
4.2M	./.git
1.2M	./pb_data
735.5M	./whisper.cpp
196.0K	./src
10.2M	./build
5.8M	./static
719.2M	./whisper.cpp-master
32.0K	./scriberr_files
181.5M	./samples
1.8G	.

versus local:

$ docker run -it scriberr-scriberr:latest /bin/sh
/app # du -h -d1
199.1M	./node_modules
160.0K	./.svelte-kit
2.9M	./.git
184.0K	./src
5.8M	./static
208.3M	.
@rishikanthc
Copy link
Owner

Sure will recompile it later today. Github actions for build and publish would be a great way to go forward. Feel free to contribute. Let me know if you need any permissions from me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants