ccallazans / ai-video-generator

Automate Creation of Story-Based Videos.
41 stars 9 forks source link

Largest RUN layers #5

Open shevaWall opened 1 month ago

shevaWall commented 1 month ago

Please add information to the readme that with a weak or unstable Internet, lifting the docker can take a much longer time due to network outages and timeouts.

I would also like dockerfile.worker to split one large RUN into several layers, because when installing dependencies, the container assembly may also fall. Because of this, you have to build a new one every time, because this large layer has not been cached.

// Dockerfile.worker
...
RUN apt-get update && apt-get install --no-install-recommends -y git ffmpeg imagemagick libmagick++-dev ghostscript
RUN apt-get clean
RUN rm -rf /var/lib/apt/lists/*
RUN sed -i 's|<policy domain="path" rights="none" pattern="@\*"/>|<!--<policy domain="path" rights="none" pattern="@*"/> -->|' /etc/ImageMagick-6/policy.xml
RUN pip install --upgrade pip
RUN pip install --no-cache-dir -r scripts/requirements.txt
...
shevaWall commented 1 month ago

and requires system memory image

ccallazans commented 1 month ago

Thanks for the suggestion, I've fixed it on this pull request: https://github.com/ccallazans/ai-video-generator/pull/6