Smallest runtime for your Dart AOT applications
4.9K
This is the smallest base image for Dart AOT binaries. The idea is simple: after AOT binary is built using dart2aot tool, it only needs dartaotruntime program to be run. This eliminates the need in Dart SDK, effectively decreasing size of the image.
$ docker run --rm -v"$PWD:/app" -it antonmeep/dart-sdk sh -c "cd /app && pub get && dart2aot app.dart app.aot"
FROM antonmeep/dartaotruntime
WORKDIR /app
COPY app.aot /app/app.aot
ENTRYPOINT ["dartaotruntime", "/app/app.aot"]
Content type
Image
Digest
sha256:165cc9340…
Size
57.9 MB
Last updated
12 months ago
docker pull antonmeep/dartaotruntime