dart-lang / dart-docker

Docker images for the Dart programming language (https://dart.dev)
BSD 3-Clause "New" or "Revised" License
67 stars 15 forks source link

MIrrors #103

Closed Dokotela closed 2 years ago

Dokotela commented 2 years ago

Is there any plan to include dart:mirrors in the Dart runtime for Docker in the future? (specifically I'm trying to run Conduit and right now it won't let me). Thankis!

athomas commented 2 years ago

dart:mirrors is a feature of the Dart SDK, the Dart docker images include a full Dart SDK. It only works on the native JIT VM, though (https://dart.dev/guides/libraries). So applications using dart:mirrors can't use dart compile exe which we generally recommend. However, the Dart SDK included in the docker image could also be used to run regular Dart programs. However, you would not end up with a slim image.

athomas commented 2 years ago

This may be more helpful for JIT applications: https://github.com/dart-lang/dart-docker/issues/101#issuecomment-1159140422