Skip to content

Commit 5713829

Browse files
committed
UPDATE README.md
1 parent 8701a04 commit 5713829

File tree

5 files changed

+22
-1
lines changed

5 files changed

+22
-1
lines changed

README.md

+5
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,8 @@ Usage of ./webssh_linux_amd64:
2626

2727
## 运行
2828
下载release里不同平台的包来执行即可
29+
30+
docker运行:
31+
```
32+
docker run -d -p 5032:5032 --log-driver json-file --log-opt max-file=1 --log-opt max-size=100m --restart always --name webssh -e TZ=Asia/Shanghai jrohy/webssh
33+
```

asset/1.png

-99.2 KB
Loading

buildx.sh

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
gox -output="docker/result/webssh_{{.OS}}_{{.Arch}}" -ldflags="-s -w" -os="linux"
2+
cd docker
3+
docker buildx build --platform linux/arm64,linux/amd64,linux/arm,linux/386,linux/ppc64le,linux/s390x -t jrohy/webssh . --push

docker/Dockerfile.architecture

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
FROM --platform=$TARGETPLATFORM alpine
2+
3+
LABEL maintainer "Jrohy <[email protected]>"
4+
5+
ARG TARGETOS
6+
7+
ARG TARGETARCH
8+
9+
RUN apk add --no-cache tzdata libc6-compat
10+
11+
COPY result/webssh_$TARGETOS_$TARGETARCH /webssh
12+
13+
ENTRYPOINT ["/webssh"]

docker/docker_run.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
docker run -d -p 5032:5032 --log-driver json-file --log-opt max-file=1 --log-opt max-size=100m --restart always --name webssh -e TZ=Asia/Shanghai webssh
1+
docker run -d -p 5032:5032 --log-driver json-file --log-opt max-file=1 --log-opt max-size=100m --restart always --name webssh -e TZ=Asia/Shanghai jrohy/webssh

0 commit comments

Comments
 (0)