support arm64, change mirror.

This commit is contained in:
licsber 2025-01-23 01:10:59 +08:00
parent 905d4e26c6
commit 9aeb98eb45
Signed by: licsber
GPG Key ID: 9D7FB88B13C88D84
2 changed files with 17 additions and 1 deletions

16
build.sh Executable file
View File

@ -0,0 +1,16 @@
#!/usr/bin/env bash
REGISTRY='registry.cn-beijing.aliyuncs.com'
NAMESPACE='licsber'
NAME='myfakessh'
# 2023-01-22-1415-CST
TAG=`date +%F-%H%M-CST`
IMAGE="$REGISTRY/$NAMESPACE/$NAME"
echo "$IMAGE:$TAG"
PLATFORM='linux/amd64,linux/arm64'
sudo docker buildx build \
--platform $PLATFORM \
-t "$IMAGE:$TAG" \
-t "$IMAGE:latest" \
--pull --push .

View File

@ -1,7 +1,7 @@
services:
MyFakeSSH:
build: .
image: licsber/myfakessh:latest
image: registry.cn-beijing.aliyuncs.com/licsber/myfakessh:latest
restart: always
container_name: myfakessh
command: /log