Skip to content

Commit d0fc663

Browse files
committed
document build and run
1 parent 7305767 commit d0fc663

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

+14
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,17 @@ oc new-app https://github.com/appuio/example-php-docker-helloworld.git --strateg
1919

2020
oc expose service appuio-php-docker-ex
2121
```
22+
23+
## Build and run the image
24+
25+
Build the image:
26+
27+
```bash
28+
buildah build-using-dockerfile -t appuio/example-php-docker-helloworld:latest .
29+
```
30+
31+
Run it locally with the following command. Beware that `--rmi` automatically removes the built image when the container stops, so you either have to rebuild it or remove the parameter from the command.
32+
33+
```bash
34+
podman run --rm --rmi --interactive --publish 8080:8080 localhost/appuio/example-php-docker-helloworld
35+
```

0 commit comments

Comments
 (0)