Skip to content

Commit

Permalink
Updated docs
Browse files Browse the repository at this point in the history
  • Loading branch information
kohlerdominik committed Jan 31, 2024
1 parent 47ab205 commit 950f096
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
20 changes: 19 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ The web service is written in Python using the aiohttp web server.
## Usage

To start the webservice just run

```
docker-compose up
docker compose up
```

The html file and and any additional files must be uploaded as multipart/form-data
Expand All @@ -30,3 +31,20 @@ Example:
```
curl -F "html=@tests/index.html" -F "asset.universe.jpg=@tests/universe.jpg" http://localhost:3000 -o test.pdf
```

## Development

For development, you should clone this repo with

```
git clone https://github.com/enertech-ch/weasyprint-docker.git
```

and create a new branch.

To test your changes, you can build the image locally and start your local build with

```
docker compose build weasyprint
docker compose up weasyprint
```
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ services:
build:
context: .
dockerfile: Dockerfile
image: 4teamwork/weasyprint:latest
image: ghcr.io/enertech-ch/weasyprint-docker:latest
ports:
- 3000:8080
- 3000:8080

0 comments on commit 950f096

Please sign in to comment.