Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(115)

Side by Side Diff: runtime/README.md

Issue 367903008: Create a set of Dart dockerfiles (Closed) Base URL: https://github.com/dart-lang/dart_docker.git@master
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« runtime/Dockerfile ('K') | « runtime/Dockerfile ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # google/dart-runtime
2
3 [`google/dart-runtime`](https://index.docker.io/u/google/dart-runtime)
proppy 2014/07/02 20:55:55 can you update the description to match the python
Søren Gjesse 2014/07/03 10:36:41 Done.
4 is a [docker](https://docker.io) base image for easily running a
5 [Dart](https://dartlang.org) application.
6
7 It can automatically bundle a Dart application with its dependencies and
8 set the default entrypoint with no additional `Dockerfile` instructions.
9
10 It is based on [`google/dart`](https://index.docker.io/u/google/dart) base
11 image.
12
13 ## Usage
14
15 Create a `Dockerfile` in your Dart application directory with the following
16 content:
17
18 FROM google/dart-runtime
19
20 To build the a docker image tagged with `my/app` run:
21
22 docker build -t my/app .
proppy 2014/07/02 20:55:55 I would remove the my/ prefix (it is not valid)
Søren Gjesse 2014/07/03 10:36:41 Changed to my-app.
23
24 To run this image in a container (assuming it is a server application
25 listening in port 8080):
26
27 docker run -d -p 8080:8080 my/app
proppy 2014/07/02 20:55:55 I would remove the my/ prefix (it is not valid)
Søren Gjesse 2014/07/03 10:36:41 Changed to my-app.
28
29 ## Sample
30
31 See the [sources](/hello) for
32 [`google/dart-hello`](https://index.docker.io/u/google/dart-hello) based
33 on this image.
34
35 ## Notes
36
37 The image assumes that your application:
38
39 - has a the `pubspec.yaml` and `pubspec.lock` files listing its dependencies.
40 - has a file named `bin/server.dart` as the entrypoint script.
proppy 2014/07/02 20:55:55 is that standard to have a bin subdirectory in a d
Søren Gjesse 2014/07/03 10:36:41 Ye, this it the directory structure we are suggest
41 - listens on port `8080`
42
43 ### Example directory laoyout:
44
45 bin
46 server.dart
47 packages
48 ...
49 pubspec.lock
50 pubspec.yaml
51
52 When building your application docker image, `ONBUILD` triggers fetch the
53 dependencies listed in `pubspec.yaml` and `pubspec.yaml` and cache them
54 appropriatly.
OLDNEW
« runtime/Dockerfile ('K') | « runtime/Dockerfile ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698