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 b422abe
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 9 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
19 changes: 10 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -301,12 +301,19 @@ word `thrill` as an English verb (only one part-of-speech is shown here):

### Installing

Preparation: on Linux (example from Ubuntu 20.04), you may need to
#### Use container:

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

#### Install from source:

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`.

Install `wiktextract` from source:

```
git clone https://github.com/tatuylonen/wiktextract.git
cd wiktextract
Expand All @@ -316,12 +323,6 @@ python -m pip install -U pip
python -m pip install --use-pep517 .
```

Alternatively, you can install the package from pypi.org:

```
python -m pip install wiktextract
```

This software requires Python 3.

### Running tests
Expand Down

0 comments on commit b422abe

Please sign in to comment.