Sign inSign up

antonmeep/dartaotruntime

By antonmeep

Updated 12 months ago

Smallest runtime for your Dart AOT applications

Image
0

4.9K

antonmeep/dartaotruntime repository overview

antonmeep/dartaotruntime GitLab GitLab pipeline status Docker Pulls Docker Stars MicroBadger Size

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.

Usage

Step 1: Generate AOT binary using antonmeep/dart-sdk

$ docker run --rm -v"$PWD:/app" -it antonmeep/dart-sdk sh -c "cd /app && pub get && dart2aot app.dart app.aot"

Step 2: Build an image using antonmeep/dartaotruntime as a base image

FROM antonmeep/dartaotruntime

WORKDIR /app
COPY app.aot /app/app.aot

ENTRYPOINT ["dartaotruntime", "/app/app.aot"]

Tag summary

Content type

Image

Digest

sha256:165cc9340

Size

57.9 MB

Last updated

12 months ago

docker pull antonmeep/dartaotruntime