Skip to content

Commit

Permalink
修复 Docker 构建的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
xiwangly2 committed Sep 22, 2023
1 parent 2398a63 commit f75902b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ RUN go build -o "connect_jxyy_network"
# 阶段二:运行阶段
FROM alpine:latest

# 设置工作目录为 /app
WORKDIR /app

# 从第一阶段中复制生成的可执行文件到当前容器
COPY --from=builder "/app/connect_jxyy_network" "/app/connect_jxyy_network"

Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,13 @@ only_once: false
`windows-arm64`
`windows-armv7`

### 使用 Docker

```bash
docker run -d --name=connect_jxyy_network \
-v ${PWD}/config.yaml:/app/config.yaml \
ghcr.io/wochaoop/connect_jxyy_network:latest
```
### 使用其它的程序

那个`bat`脚本编辑一下配置就可以在 Windows 系统用了,没有做自动检测,但可以利用计划任务实现自动联网
Expand Down

0 comments on commit f75902b

Please sign in to comment.