Skip to content

enhancement: reduce ghcr image sizeΒ #1045

@zhravan

Description

@zhravan

πŸ”– Feature description

Currently postiz ghcr image size is ~5GB, can we not optimize this?

I see we are using dockerfile.dev for deployment images as well.

From the dockerfile.dev, i could infer that we are currently not doing any sort of multi staging for setup, if we do that, i think we can reduce teh img size to at least 1-1.5GB.

🎀 Why is this feature needed ?

Following reasons:

  1. Increased storage though we can have lighter size
  2. Longer deployement time, due to image size (just for pulling)

These are something I personally failed. I tried self hosting locally before on VPS, so mostly took much higher time locally. But otherwise too, 5GB is too big I feel.

✌️ How do you aim to achieve this?

Afaik and have seen the CI/CD setup and understood, we are simply directly creating a deployment image without multi staging, so introducing that should reduce the image size.

πŸ”„οΈ Additional Information

No response

πŸ‘€ Have you spent some time to check if this feature request has been raised before?

  • I checked and didn't find similar issue

Are you willing to submit PR?

Yes I am willing to submit a PR!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions