Skip to content

[feat] Official docker image / dev container #14362

@nycki93

Description

@nycki93

Describe the problem

I discovered Tauri via https://xpda.net/, and the author there notes that it has a "phenominal" build tool, but bemoans that setting up a dev environment takes "two hours" of "constant attention". I decided to take the plunge today, and I agree -- that setup time is a huge pain point, it means you can't just jump into a new project and start tinkering, you lose a lot of momentum while looking up all the required libraries for your OS.

Describe the solution you'd like

I think we should have an official docker image, and provide documentation for how to use it to "skip to the fun part" when writing an app in Tauri. I've been working on my own Containerfile here and I think it's coming along nicely, any suggestions for this are welcome!

In particular, the official docs suggest that if you want Android support, you should download Android Studio from its website and click through an installer. But I've found that actually you can use the Android Tools packages for Debian and build an apk just fine! So this, too, can be automated.

I don't have an iOS device to test on, so I would need help to add support for that to this image.

Alternatives considered

Worth noting here that although I call this a "docker image", I'm actually running it using podman-compose, because I found that easier to install through my package manager on Debian Trixie.

An alternative would be to write one of those big bash scripts that mucks about with your OS and installs everything for you, like Rust uses by default. But I've never really liked installers that mess with my host OS. I want to know what's been installed, so that if I change my mind later I can remove it.

I suppose another alternative would be to have the npm distribution of tauri be "batteries included" and bundle all its required binaries inside of the node_modules folder.

Additional context

No response

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