Fixes: arm crossbuild commandline err, env-file, readme
Signed-off-by: Terekhin Alexandr <alex@bearns.me>
This commit is contained in:
+2
-2
@@ -5,12 +5,12 @@ RUN apk add --no-cache openssl-dev linux-headers zlib-dev gcc gperf cmake build-
|
||||
&& mkdir build \
|
||||
&& cd build \
|
||||
&& cmake -DCMAKE_BUILD_TYPE=Release .. \
|
||||
&& cmake --build . --target install \
|
||||
&& cmake --build . -j 4 --target install \
|
||||
&& apk del linux-headers gcc gperf cmake build-base git \
|
||||
&& rm -r ./telegram-bot-api
|
||||
RUN adduser --no-create-home --uid 2000 --disabled-password tg-bot \
|
||||
&& mkdir -p /opt/telegram-bot-api \
|
||||
&& chown tg-bot:tg-bot /opt/telegram-bot-api
|
||||
&& chown tg-bot /opt/telegram-bot-api
|
||||
|
||||
ENV TELEGRAM_API_ID=""
|
||||
ENV TELEGRAM_API_HASH=""
|
||||
|
||||
@@ -16,7 +16,7 @@ Put it into `tg-bot-api.env` file variables.
|
||||
Just run `./build.sh` script
|
||||
Or build manualy: `docker build -t <you image name> .`
|
||||
And run it:
|
||||
`docker run -p <host port>:8081 --name <you container name> --env=./tg-bot-api.env <you image name>`
|
||||
`docker run -p <host port>:8081 --name <you container name> --env-file=./tg-bot-api.env <you image name>`
|
||||
|
||||
## Crossbuild
|
||||
|
||||
@@ -49,5 +49,8 @@ default docker
|
||||
Set used by default
|
||||
`docker buildx use <gallant_mahavira>`
|
||||
|
||||
Run crossbuild
|
||||
`docker buildx build -t <you image name> --platform linux/arm/v7 .`
|
||||
Run crossbuild & export image to tar file
|
||||
`docker buildx build -o "type=docker,dest=image.docker.tar" -t <you image name> --platform linux/arm/v7 .`
|
||||
|
||||
Import crossbuilded image into target host
|
||||
`docker image load -i image.docker.tar`
|
||||
Reference in New Issue
Block a user