Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Offical apps | Community apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Package development
  3. Alternative lightweight base image

Alternative lightweight base image

Scheduled Pinned Locked Moved Package development
17 Posts 5 Posters 453 Views 5 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • robiR
    robiR
    robi
    wrote last edited by
    #8

    The question is what the experience is like in the terminal.

    On the other hand a Python based app doesn't need to include the entire base image, only the needed parts, but that means specifying all the parts in the Docker file.

    So how many base images do we need in parts to keep all the apps happy?

    Conscious tech

    timconsidineT 1 Reply Last reply
    0
    • robiR robi

      The question is what the experience is like in the terminal.

      On the other hand a Python based app doesn't need to include the entire base image, only the needed parts, but that means specifying all the parts in the Docker file.

      So how many base images do we need in parts to keep all the apps happy?

      timconsidineT
      timconsidineT
      timconsidine
      App Dev
      wrote last edited by
      #9

      @robi said:

      The question is what the experience is like in the terminal.

      in an app packaged with cloudron-minibase ?
      as far as I can tell, it is the same as with cloudron/base.

      Indie app dev, scratching my itches : communityapps.appx.uk, portfolio at myca.appx.uk

      robiR 1 Reply Last reply
      0
      • timconsidineT timconsidine

        @robi said:

        The question is what the experience is like in the terminal.

        in an app packaged with cloudron-minibase ?
        as far as I can tell, it is the same as with cloudron/base.

        robiR
        robiR
        robi
        wrote last edited by
        #10

        @timconsidine as in all the troubleshooting commands still exist?

        Conscious tech

        timconsidineT 1 Reply Last reply
        0
        • robiR robi

          @timconsidine as in all the troubleshooting commands still exist?

          timconsidineT
          timconsidineT
          timconsidine
          App Dev
          wrote last edited by
          #11

          @robi honestly, I haven't explicitly tested that dimension as the minibase was a test, with those questions to be answered through actually using it.

          But at the end of the day, it is simply the official cloudron/base:5.1.0 without node, etc.

          I doubt troubleshooting commands would be lost during that process.
          And I haven't specifically and deliberately removed any.

          Indie app dev, scratching my itches : communityapps.appx.uk, portfolio at myca.appx.uk

          1 Reply Last reply
          1
          • timconsidineT
            timconsidineT
            timconsidine
            App Dev
            wrote last edited by timconsidine
            #12

            In the spirit of sharing experience of using cloudron-minibase, I just updated my Community App rybbit.

            • 1st update was for latest rybbit upstream using cloudron/base : built app image was 5.29Gb
            • 2nd update replaced final multi-stage build with cloudron-minibase + Node : built app image is 2.51Gb.

            50% saving in app image size !

            Indie app dev, scratching my itches : communityapps.appx.uk, portfolio at myca.appx.uk

            jdaviescoatesJ 1 Reply Last reply
            3
            • timconsidineT timconsidine

              In the spirit of sharing experience of using cloudron-minibase, I just updated my Community App rybbit.

              • 1st update was for latest rybbit upstream using cloudron/base : built app image was 5.29Gb
              • 2nd update replaced final multi-stage build with cloudron-minibase + Node : built app image is 2.51Gb.

              50% saving in app image size !

              jdaviescoatesJ
              jdaviescoatesJ
              jdaviescoates
              wrote last edited by
              #13

              @timconsidine said:

              rybbit

              https://ca.cloudron.io/app/rybbit could do with a bit more of a description imho (and a working screenshot) 🙂

              I use Cloudron with Gandi & Hetzner

              timconsidineT 1 Reply Last reply
              1
              • jdaviescoatesJ jdaviescoates

                @timconsidine said:

                rybbit

                https://ca.cloudron.io/app/rybbit could do with a bit more of a description imho (and a working screenshot) 🙂

                timconsidineT
                timconsidineT
                timconsidine
                App Dev
                wrote last edited by
                #14

                @jdaviescoates will get onto it - thanks for the nudge - laziness during publication - sorry.

                Indie app dev, scratching my itches : communityapps.appx.uk, portfolio at myca.appx.uk

                1 Reply Last reply
                1
                • timconsidineT
                  timconsidineT
                  timconsidine
                  App Dev
                  wrote last edited by
                  #15

                  Summary web page for the lightweight alternative, explaining what's in and what's out :
                  https://appx.uk/cloudron-minibase/

                  Also in preparation for new cloudron base image supporting ubuntu 26.04, moving name convention from cloudron-minibase:0.0.1 to tcmbp132021/cloudron-minibase:ubuntu24.04 .
                  Original name works.

                  Indie app dev, scratching my itches : communityapps.appx.uk, portfolio at myca.appx.uk

                  1 Reply Last reply
                  0
                  • timconsidineT
                    timconsidineT
                    timconsidine
                    App Dev
                    wrote last edited by
                    #16

                    A neat "trick" for those who are cautious about not building with official base image :

                    FROM cloudron/base:5.1.0 AS builder
                    # Ubuntu 24.04 — full toolchain: Node, Python, nginx, supervisor, etc.
                    # Build everything here
                    
                    FROM tcmbp132021/cloudron-minibase:ubuntu24.04
                    # Ubuntu 24.04 — same glibc, same libssl, same everything
                    COPY --from=builder /what/you/need /where/you/need
                    CMD ["/app/code/start.sh"]
                    

                    The built image is in all senses a proper cloudron build in the builder stage.
                    But the final runtime stage shrinks the image.
                    There is a level of caution and attention need to ensure that all artefacts are copied in from builder.
                    But you will soon know if anything is missing.

                    Indie app dev, scratching my itches : communityapps.appx.uk, portfolio at myca.appx.uk

                    1 Reply Last reply
                    1
                    • girishG
                      girishG
                      girish
                      Staff
                      wrote last edited by
                      #17

                      I looked into this a bit . We can't remove so many of the packages. Mostly, it's for sharing between all the packages..

                      build-essential / gcc / g++, nginx-full, ImageMagick + GraphicsMagick, the whole -dev set (libssl-dev, libpq-dev, jpeg/png/xml, …), mysql/postgres/redis/sqlite/ldap clients, supervisor, git, vim, tini, yq, crudini, are still needed .

                      I have a new image now which is basically those packages and the hub size is around 300MB. Already something which was 2.3GB. But of course, have to see how this plays out in practice on a cloudron with many apps (because we reduce the sharing).

                      1 Reply Last reply
                      0

                      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                      With your input, this post could be even better 💗

                      Register Login
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Bookmarks
                      • Search