Skip to content

Commit

Permalink
Add Containerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
xxyzz committed Nov 13, 2023
1 parent 87d6cd3 commit 298f882
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Containerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM docker.io/python
RUN apt update && apt install -y lbzip2
COPY pyproject.toml README.md LICENSE .
COPY src src
RUN python -m pip install -U pip
RUN python -m pip install --use-pep517 .
ENTRYPOINT bash
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,13 @@ Preparation: on Linux (example from Ubuntu 20.04), you may need to
first install the `build-essential` and `python3-dev` packages
with `apt update && apt install build-essential python3-dev python3-pip lbzip2`.

Use container:

```
$ podman build -t wiktextract .
$ podman run -it --rm wiktextract wiktwords --help
```

Install `wiktextract` from source:

```
Expand Down

0 comments on commit 298f882

Please sign in to comment.