support arm64, change mirror.
This commit is contained in:
parent
905d4e26c6
commit
9aeb98eb45
16
build.sh
Executable file
16
build.sh
Executable 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 .
|
@ -1,7 +1,7 @@
|
|||||||
services:
|
services:
|
||||||
MyFakeSSH:
|
MyFakeSSH:
|
||||||
build: .
|
build: .
|
||||||
image: licsber/myfakessh:latest
|
image: registry.cn-beijing.aliyuncs.com/licsber/myfakessh:latest
|
||||||
restart: always
|
restart: always
|
||||||
container_name: myfakessh
|
container_name: myfakessh
|
||||||
command: /log
|
command: /log
|
||||||
|
Loading…
x
Reference in New Issue
Block a user