Skip to content

Commit

Permalink
docs: add Docker build instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
ofsahof committed Aug 30, 2021
1 parent 1c28e3a commit de2530f
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,29 @@ git clone https://github.com/muratmirgun/pretgo
```bash
go install
```
### Or use Dockerfile to generate image and container

```bash
# inside project
docker build -t pretgo-local .
```

### Then use it with json
```bash
➜ cat mes.json | docker run -i --rm pretgo-local -format="json"
```

### Or html

```bash
➜ cat mes.html | docker run -i --rm pretgo-local -format="html"
```

### Or xml format

```bash
➜ cat mes.xml | docker run -i --rm pretgo-local -format="xml"
```

## Code Examples

Expand Down

0 comments on commit de2530f

Please sign in to comment.