Coder Social home page Coder Social logo

Docker size about photoprism HOT 6 CLOSED

photoprism avatar photoprism commented on May 1, 2024 4
Docker size

from photoprism.

Comments (6)

lastzero avatar lastzero commented on May 1, 2024 3

Compressed size is 172 MB now. Build and push to Docker Hub performed by Travis CI whenever develop is merged into master.

from photoprism.

lastzero avatar lastzero commented on May 1, 2024 2

I see. We use Tensorflow as a library for image classification. Doing this via rest means copying the contents (that are already in memory) to a different container via HTTP just to get some tag labels back. Can be done, but probably not very efficient. Also means maintaining another app as a server. There are (commercial) ready-to-use tensorflow based container images available for that though. Maybe worth an experiment if there is time. Not sure how small they are.

Our image certainly has to become smaller. Contains lots of dev only stuff right now.

from photoprism.

lastzero avatar lastzero commented on May 1, 2024

Yes, great idea. I guess we can remove lots of stuff from the development image related to TensorFlow and Python. It's there to experiment, but most of it is not used. But of course we need the TensorFlow model, HTML templates, JS & CSS code etc, so just a single binary is not enough.

Do you think it would work without any TensorFlow libs installed? I don't think so, but never tried.

from photoprism.

rgarrigue avatar rgarrigue commented on May 1, 2024

I don't know a thing about Photoprism, I just saw the project on github explore and wanted to gave a shot via docker. And I don't know a thing about Tensorflow either.

So, on a pure docker based point of view

  • Static assets can be provided like the bin, copy from build container / sources
  • If tensorflow in photoprism context can be used in a client/server way, it should. Then you can write a docker-compose.yml featuring "photoprism" your container, "tensorflow" for example https://hub.docker.com/r/tensorflow/tensorflow/.

from photoprism.

lastzero avatar lastzero commented on May 1, 2024

Working on this right now... There will be a development base image and one for production without any dev / build tools.

from photoprism.

rgarrigue avatar rgarrigue commented on May 1, 2024

Purrrfect, thanks !

from photoprism.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.