2019-04-24 11:33:35 -04:00
|
|
|
# lbrynet
|
2018-05-31 20:17:04 -04:00
|
|
|
|
2019-04-25 10:15:14 -04:00
|
|
|
## Compiler container
|
2018-05-31 20:17:04 -04:00
|
|
|
|
2019-04-25 10:15:14 -04:00
|
|
|
The [Dockerfile-compiler-linux](Dockerfile-compiler-linux) is for building lbrynet for any architecture supported
|
|
|
|
by an Ubuntu 18.04 base image.
|
2018-05-31 20:17:04 -04:00
|
|
|
|
2019-04-25 10:15:14 -04:00
|
|
|
### Register qemu to run docker images built for platforms other than your host
|
2018-05-31 20:17:04 -04:00
|
|
|
|
2019-04-24 11:33:35 -04:00
|
|
|
```
|
2019-04-25 10:15:14 -04:00
|
|
|
docker run --rm --privileged multiarch/qemu-user-static:register
|
2019-04-24 11:33:35 -04:00
|
|
|
```
|
2018-09-30 16:47:40 -04:00
|
|
|
|
2019-04-25 10:15:14 -04:00
|
|
|
### Build for the default x86_64 platform:
|
2018-11-29 20:01:58 +00:00
|
|
|
|
2019-04-24 11:33:35 -04:00
|
|
|
```
|
2019-04-25 10:15:14 -04:00
|
|
|
docker build -t lbrynet -f Dockerfile-compiler-linux .
|
|
|
|
```
|
|
|
|
|
|
|
|
### Build for an ARM 32-bit platform:
|
|
|
|
|
|
|
|
```
|
|
|
|
docker build -t lbrynet-armhf -f Dockerfile-compiler-linux --build-arg BASE_IMAGE=multiarch/ubuntu-core:armhf-bionic .
|
|
|
|
```
|
|
|
|
|
|
|
|
### Build for an ARM 64-bit platform:
|
|
|
|
|
|
|
|
```
|
|
|
|
docker build -t lbrynet-arm64 -f Dockerfile-compiler-linux --build-arg BASE_IMAGE=multiarch/ubuntu-core:arm64-bionic .
|
2019-04-24 11:33:35 -04:00
|
|
|
```
|