|
|
|
@ -18,6 +18,10 @@ Or build manualy: `docker build -t <you image name> .` |
|
|
|
|
And run it: |
|
|
|
|
`docker run -p <host port>:8081 --name <you container name> --env-file=./tg-bot-api.env <you image name>` |
|
|
|
|
|
|
|
|
|
## This image on dockerhub |
|
|
|
|
|
|
|
|
|
Built for linux OS amd64 and arm/v7 arch https://hub.docker.com/r/bearns/tg-bot-api-server |
|
|
|
|
|
|
|
|
|
## Crossbuild |
|
|
|
|
|
|
|
|
|
Use qemu and buildx if you need it. |
|
|
|
@ -27,8 +31,6 @@ Get buidlx here https://github.com/docker/buildx |
|
|
|
|
Buildix documentation here https://docs.docker.com/buildx/working-with-buildx/ |
|
|
|
|
|
|
|
|
|
Run image |
|
|
|
|
`docker run --privileged --rm docker/binfmt` |
|
|
|
|
Or (alternative) |
|
|
|
|
`docker run --privileged --rm multiarch/qemu-user-static:latest` |
|
|
|
|
|
|
|
|
|
Create profile (linux/arm/v7 used as example) |
|
|
|
|