mirror of https://github.com/knative/docs.git
serving/samples/helloworld-dart: simplify and standardize Dockerfile (#501)
This commit is contained in:
parent
04dc9976d9
commit
5d419226ea
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue