Skip to content

Commit 53fced0

Browse files
authored
Merge pull request #13 from appuio/update
Update
2 parents b94ff31 + 77cb3fb commit 53fced0

2 files changed

Lines changed: 15 additions & 1 deletion

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM docker.io/centos/php-71-centos7
1+
FROM registry.access.redhat.com/ubi8/php-74:1
22

33
ADD app /opt/app-root/src
44

README.md

Lines changed: 14 additions & 0 deletions
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)