Skip to content

Commit

Permalink
Readme - update doc
Browse files Browse the repository at this point in the history
- add info about free image on Hub
- chane build info to prevent rewrite pulled image
  • Loading branch information
jakubboucek committed Aug 31, 2019
1 parent d278284 commit 97bc4a7
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,16 @@ Template container for wkhtmltopdf in HTTP server with PHP 7.3.
- optimized for small image size a fast load
- ready to run in serverless environment ([Google Cloud Run](https://cloud.google.com/run/), etc.)

## Instalation
## Download image
Call command `docker pull redbitcz/wkpdf` ([more info](https://hub.docker.com/r/redbitcz/wkpdf)).


## Use for your custom Image
In your Dockerfile put to `FROM` directive [`redbitcz/wkpdf`](https://hub.docker.com/r/redbitcz/wkpdf).

## Build
1. Clone Git repo.
2. In project directory call `docker build -t redbitcz/wkpdf .`
2. In project directory call `docker build -t my-wkpdf .`
3. Use it.
4. Profit!

Expand All @@ -23,8 +30,8 @@ configured features – feel free to write your own app inside now.
## Build example
1. Download & install [Docker for you PC](https://www.docker.com/products/docker-desktop). Run it.
2. Open command line and try to call `docker -v` command – that must print version of installed Docker Desktop service.
3. Run `docker build -t redbitcz/wkpdf .` *(don't miss the dot at end)*. Docker now start build new Docker image from current
directory (especially from [Dockerfile](Dockerfile)) and tag it with name `redbitcz/wkpdf`.
3. Run `docker build -t my-wkpdf .` *(don't miss the dot at end)*. Docker now start build new Docker image from current
directory (especially from [Dockerfile](Dockerfile)) and tag it with name `my-wkpdf`.

You can also just pull from image [`redbitcz/wkpdf`](https://hub.docker.com/r/redbitcz/wkpdf).

Expand Down

0 comments on commit 97bc4a7

Please sign in to comment.