From 76a1c8bd9998515560aa170302036fae64532860 Mon Sep 17 00:00:00 2001 From: Alexander Pankratov Date: Fri, 26 Nov 2021 01:05:37 +0300 Subject: [PATCH] Multiplatform Docker build: arm64, amd64 --- bin/docker-build.sh | 5 +++++ bin/docker-exec.sh | 2 +- bin/docker-logs.sh | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100755 bin/docker-build.sh diff --git a/bin/docker-build.sh b/bin/docker-build.sh new file mode 100755 index 0000000..e595790 --- /dev/null +++ b/bin/docker-build.sh @@ -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/../" \ No newline at end of file diff --git a/bin/docker-exec.sh b/bin/docker-exec.sh index fd2552c..94360ff 100755 --- a/bin/docker-exec.sh +++ b/bin/docker-exec.sh @@ -1,3 +1,3 @@ -#!/bin/bash +#!/usr/bin/env bash docker exec -it telegram-api-server /bin/bash \ No newline at end of file diff --git a/bin/docker-logs.sh b/bin/docker-logs.sh index aa53e6f..af897f8 100755 --- a/bin/docker-logs.sh +++ b/bin/docker-logs.sh @@ -1,3 +1,3 @@ -#!/bin/bash +#!/usr/bin/env bash docker logs telegram-api-server --follow \ No newline at end of file