LibrePhotos / librephotos-docker

You can find here the Dockerfiles for the automated build process of LibrePhotos.
MIT License
157 stars 101 forks source link

Optimize dockerfile #28

Closed mmartinortiz closed 2 years ago

mmartinortiz commented 3 years ago

Hi,

I have taken a new look to the Dockerfile of the backend. I think that some things are redundant, so I tried to remove overhead writing a single Dockerfile.

This new Dockerfile:

Even though, I think that it could be optimised a bit more.

Please, test the image generated and its integration with the rest of images that composes Librephotos. I only tested the build in AMD64. I could start the service with the Docker compose but I could not setup a folder to be scanned (what I think it is a different issue)

Regards, Manuel

derneuere commented 2 years ago

Thanks for the --no-cache command for pip. This reduce the size alot! I close this pull request as the dockerfiles changed alot :)