Skip to content

Commit

Permalink
Add docker image for testing (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
segadora authored Nov 19, 2024
1 parent f06b03b commit 1134d92
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM python:3-alpine

RUN apk add fontconfig ttf-dejavu

WORKDIR /app

COPY . .

RUN pip install .

EXPOSE 8013

CMD [ "python", "-m", "brother_ql_web", "--configuration", "config.json" ]
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ The most basic call will look like this:

Additional parameters might be passed and will overwrite the values configured in your configuration file. Please refer to the `--help` flag to learn more about the possible flags you might pass.

#### Running with Docker compose

To start the server with Docker compose, create your configuration file `config.json` in the repository root, then run `docker compose up`.

### Usage

Once it is running, access the web interface by opening the page with your browser.
Expand Down
7 changes: 7 additions & 0 deletions compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
services:
brother_ql_web:
build: .
ports:
- "8013:8013"
volumes:
- .:/app

0 comments on commit 1134d92

Please sign in to comment.