https://github.com/by275/docker-libtorrent
Base image providing pre-built libtorrent with python-bindings
https://github.com/by275/docker-libtorrent
docker libtorrent
Last synced: 4 months ago
JSON representation
Base image providing pre-built libtorrent with python-bindings
- Host: GitHub
- URL: https://github.com/by275/docker-libtorrent
- Owner: by275
- Created: 2020-05-14T04:33:01.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2025-11-25T08:41:48.000Z (8 months ago)
- Last Synced: 2025-11-28T14:15:32.513Z (7 months ago)
- Topics: docker, libtorrent
- Language: Dockerfile
- Homepage:
- Size: 146 KB
- Stars: 10
- Watchers: 0
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# docker-libtorrent
Base image providing pre-built libtorrent with python-bindings
## Tags
```bash
{libtorrent_ver}-{base_image}
```
| | description |
|---|---|
| ```libtorrent_ver``` | release version, e.g. ```2.0.5``` |
| ```base_image``` | base image with version, e.g. ```alpine3.15``` |
## Usage
Libs are prepared in ```/libtorrent-build/usr/lib/``` so you can copy them to your own image as follows.
### Build
```Dockerfile
ARG LT_VER=2.0.6
ARG ALPINE_VER=3.16
FROM ghcr.io/by275/libtorrent:${LT_VER}-alpine${ALPINE_VER} AS libtorrent
FROM alpine:${ALPINE_VER}
# install runtime library
RUN apk add --no-cache \
libstdc++ \
boost-system \
boost-python3 \
python3
# copy libtorrent libs
COPY --from=libtorrent /libtorrent-build/usr/lib/ /usr/lib/
```
```bash
docker build -t libtorrent-test .
```
### Test
```bash
>> docker run --rm libtorrent-test python3 -c 'import libtorrent; print(libtorrent.__version__)'
2.0.6.0
```