Softwr

Mobile Development · head to head

Apache Cordova vs Distroless

Apache Cordova logo

Apache Cordova

Mobile Development

Open source framework for wrapping HTML, CSS and JavaScript apps as mobile apps

From
Free
Free plan
Yes
Distroless logo

Distroless

Developer Tools

Minimal container base images from Google that hold only an app and its runtime

From
Free
Free plan
Yes

The short version

  • Both are free.
  • Only Apache Cordova lists targets iOS, Android and Electron; only Distroless lists debian 13 based images.
  • Where Apache Cordova falls short: apps render in a web view, so UI is not native by default.
  • Where Distroless falls short: no shell or package manager, so installing packages or debugging inside the image is harder.

How do Apache Cordova and Distroless differ?

Apache Cordova and Distroless differ on platforms and category (Mobile Development against Developer Tools). Only the attributes on which Apache Cordova and Distroless actually diverge.

Attributes where Apache Cordova and Distroless differ
AttributeApache CordovaDistroless
PlatformsiOS, Android, Windows, macOS, LinuxLinux
CategoryMobile DevelopmentDeveloper Tools

Identical on both: starting price (Free), pricing model (Open-source), free tier (Yes).

Not yet recorded: founded for Distroless.

Which features does each one have?

They share no listed features; 6 appear only for Apache Cordova and 8 only for Distroless. Drawn from each product's published feature list. An absence here means we hold no record of it - not that the product lacks it.

Only in Apache Cordova

  • Single JavaScript API for device functions
  • Plugin system managed from the command line
  • Targets iOS, Android and Electron
  • HTML, CSS and JavaScript app code
  • Apache 2.0 open source licence
  • Platform feature support documentation

Only in Distroless

  • No package manager or shell in runtime images
  • Debian 13 based images
  • Static, base and cc images for compiled apps
  • Java, Node.js and Python 3 runtime images
  • Nonroot and debug tag variants
  • Cosign keyless image signing
  • Multi architecture builds including amd64, arm64 and s390x
  • Bazel based build tooling

What is each one used for?

Apache Cordova is most often brought in for wrapping an existing web app as a mobile app; Distroless for production base images for Go or Rust binaries. The jobs each tool is most often brought in to do.

Apache Cordova

  • Wrapping an existing web app as a mobile appnot Distroless
  • Single codebase for iOS and Androidnot Distroless
  • Prototyping mobile apps with web skillsnot Distroless
  • Accessing device features from JavaScript through pluginsnot Distroless

Distroless

  • Production base images for Go or Rust binariesnot Apache Cordova
  • Reducing vulnerability scanner findingsnot Apache Cordova
  • Smaller Java and Node.js container imagesnot Apache Cordova
  • Running containers as a non root usernot Apache Cordova
  • Verifying image provenance with cosignnot Apache Cordova

Where do Apache Cordova and Distroless fall short?

Apache Cordova's most cited limit: apps render in a web view, so UI is not native by default. Distroless's: no shell or package manager, so installing packages or debugging inside the image is harder. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

Apache Cordova

  • Apps render in a web view, so UI is not native by default
  • No built-in UI component library or hosted build service
  • Adobe's PhoneGap Build cloud service was discontinued in 2020
  • Many platforms listed in older versions, such as BlackBerry and Tizen, are no longer supported

Distroless

  • No shell or package manager, so installing packages or debugging inside the image is harder
  • Language images cover only Java, Node.js and Python 3, with other runtimes built by the user
  • Architecture support differs by image, and python3 lists only amd64, arm64 and riscv64
  • Tags without a distro suffix may change which Debian release they resolve to

How much do Apache Cordova and Distroless cost?

Apache Cordova is free to use; Distroless is free to use. Plan by plan below, from each vendor's own pricing page.

Apache Cordova

Free

No published plan breakdown. See the Apache Cordova review.

Distroless

Free

No published plan breakdown. See the Distroless review.

Which should you pick?

Choose Apache Cordova if

  • You need single javascript api for device functions.
  • You want to start without paying.
  • You work on iOS, Android, Windows, macOS, Linux.
  • You also want plugin system managed from the command line.

Choose Distroless if

  • You need no package manager or shell in runtime images.
  • You want to start without paying.
  • You work on Linux.
  • You also want debian 13 based images.

Questions people ask

Is Apache Cordova or Distroless better?
It depends on the job. Apache Cordova fits wrapping an existing web app as a mobile app; Distroless fits production base images for Go or Rust binaries. Apache Cordova starts at Free and Distroless at Free.
Which is cheaper, Apache Cordova or Distroless?
Apache Cordova starts at Free and Distroless at Free.
Does Apache Cordova or Distroless run on more platforms?
Apache Cordova runs on iOS, Android, Windows, macOS, Linux. Distroless runs on Linux.
Can I use Apache Cordova for free?
Both have a free tier, so you can try either at no cost before committing.
What is Apache Cordova best used for?
Apache Cordova is most often used for wrapping an existing web app as a mobile app, single codebase for ios and android, prototyping mobile apps with web skills, accessing device features from javascript through plugins. Of those, wrapping an existing web app as a mobile app and single codebase for ios and android are not what Distroless is typically brought in for.
What can Apache Cordova do that Distroless cannot?
Apache Cordova covers Single JavaScript API for device functions, Plugin system managed from the command line, Targets iOS, Android and Electron, HTML, CSS and JavaScript app code. Distroless covers No package manager or shell in runtime images, Debian 13 based images, Static, base and cc images for compiled apps, Java, Node.js and Python 3 runtime images.

Answered from the vendors’ own pages

Apache Cordova: Is Apache Cordova free?

Yes. The project describes itself as free and open source under the Apache License 2.0, maintained by the Apache Software Foundation.

Source
Distroless: What is in a distroless image?

According to the project, an image holds only your application and its runtime dependencies. Package managers, shells and other standard Linux distribution programs are omitted.

Source
Apache Cordova: How is Cordova related to PhoneGap?

Nitobi Software developed PhoneGap in 2008 and Adobe acquired Nitobi in October 2011. The code was contributed to Apache and renamed Cordova.

Source
Distroless: How can I debug a distroless container?

The project publishes debug and debug-nonroot tags that add a BusyBox shell. The standard tags have no shell.

Source
Apache Cordova: Which platforms does Cordova support?

As of version 11, iOS, Android, Windows 8.1, Windows Phone 8.1, Windows 10 and Electron are listed on Wikipedia. The project site has a page of per-platform feature support.

Source
Distroless: Are distroless images signed?

Yes. Images are signed with cosign keyless signing, and the project provides a cosign verify command that checks the certificate issuer and identity.

Source
Distroless: Which licence does Distroless use?

GitHub's repository data lists the Apache 2.0 licence. The images are free to use.

Source
Share

Related pages

Other head to heads