add docker run from Hub doc to README

This commit is contained in:
Michael Vorburger ⛑️ 2020-05-02 20:29:32 +02:00 committed by GitHub
parent af6fc237f4
commit 24d08b4325
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -136,7 +136,13 @@ grunt serve
```
### Docker
To build a Docker image for the current repo, run:
This project publishes a Docker image (since #[3112](https://github.com/openMF/community-app/issues/3112)) available on https://hub.docker.com/r/openmf/community-app/. Our [Dockerfile](Dockerfile) uses a Ruby and Node.JS base image to build the current repo and deploy the app on Nginx, which is exposed on port 80 within the container. It can be used like this to access the webapp on http://localhost:9090 in your browser:
docker run --name community-app -it -p 9090:80 openmf/community-app
To locally build this Docker image from source (after `git clone` this repo), run:
```
docker build -t mifos-community-app .
```
@ -146,10 +152,7 @@ docker run --name mifos-ui -it -d -p 80:80 mifos-community-app
```
Access the webapp on http://localhost in your browser.
The Dockerfile uses a ruby and node base image to build the current repo and deploys the app on nginx which is exposed
on port 80 within the container.
This Docker image is (since #[3112](https://github.com/openMF/community-app/issues/3112)) also available on https://hub.docker.com/r/openmf/community-app/.
### Compile sass to css