Docker base image to train dart script snapshots and turn them into "app-jit" snapshots
1.2K
Docker base image to train dart script snapshots and turn them into "app-jit" snapshots.
List of "static" images (all are "onbuild"):
Available tags correspond to those of google/dart.
See dart-static-builder instructions first.
For this image to work, app must have train command, so it can be run like this:
$ dart main.dart train
This command should launch a server, issue several training requests to itself and finish with 0 exit code.
This image can be used as an intermediate stage to train script snapshot from "builder" step to get "app-jit" snapshot.
Create Dockerfile like this:
FROM guziks/dart-static-builder as builder
FROM guziks/dart-static-trainer as snapshot
FROM guziks/dart-static-runtime
EXPOSE <port1> <port2> ...
CMD ["arg1", "arg2", ...]
Content type
Image
Digest
Size
220.5 MB
Last updated
over 7 years ago
docker pull guziks/dart-static-trainer