Multiplatform Docker build: arm64, amd64

This commit is contained in:
Alexander Pankratov 2021-11-26 01:05:37 +03:00
parent 3f36382c4e
commit 76a1c8bd99
3 changed files with 7 additions and 2 deletions

5
bin/docker-build.sh Executable file
View File

@ -0,0 +1,5 @@
#!/usr/bin/env bash
SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
docker buildx build --platform linux/amd64,linux/arm64 -t xtrime/telegram-api-server:latest --push "$SCRIPT_DIR/../"

View File

@ -1,3 +1,3 @@
#!/bin/bash
#!/usr/bin/env bash
docker exec -it telegram-api-server /bin/bash

View File

@ -1,3 +1,3 @@
#!/bin/bash
#!/usr/bin/env bash
docker logs telegram-api-server --follow