Sign inSign up

guziks/dart-static-trainer

By guziks

•Updated over 7 years ago

Docker base image to train dart script snapshots and turn them into "app-jit" snapshots

Image
0

1.2K

guziks/dart-static-trainer repository overview

⁠About

Docker base image to train dart script snapshots⁠ and turn them into "app-jit" snapshots.

List of "static" images (all are "onbuild"):

⁠Tags

Available tags correspond to those of google/dart⁠.

⁠Prerequisites

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.

⁠Usage

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", ...]

Tag summary

Content type

Image

Digest

Size

220.5 MB

Last updated

over 7 years ago

docker pull guziks/dart-static-trainer