serving/samples/helloworld-dart: simplify and standardize Dockerfile (#501)

This commit is contained in:
Adam Ross 2018-11-26 02:57:22 -07:00 committed by Knative Prow Robot
parent 04dc9976d9
commit 5d419226ea
2 changed files with 12 additions and 0 deletions

View File

@ -1 +1,7 @@
# Use Google's official Dart image.
# https://hub.docker.com/r/google/dart-runtime/
FROM google/dart-runtime
# Configure and document the service HTTP port.
ENV PORT 8080
EXPOSE $PORT

View File

@ -71,7 +71,13 @@ created using the following instructions.
dockerizing your applications, for dart apps this can be done as follows:
```Dockerfile
# Use Google's official Dart image.
# https://hub.docker.com/r/google/dart-runtime/
FROM google/dart-runtime
# Configure and document the service HTTP port.
ENV PORT 8080
EXPOSE $PORT
```
5. Create a new file, `service.yaml` and copy the following service definition