Compare commits

..
6 Commits
Author SHA1 Message Date
liwei 7c6c361d30 fix: docker dist copy 2022-11-08 22:55:56 +08:00
liwei 872ba0ba87 doc: fix docker run command 2022-11-08 22:36:47 +08:00
monkeyWie 93c14dcee5 fix: ip bind (#50) 2022-11-08 22:29:33 +08:00
liwei 1af0b2175c ci: path include Dockerfile 2022-11-08 21:50:45 +08:00
monkeyWie ee81ebffef fix: docker executable (#49) 2022-11-08 21:49:02 +08:00
levi dc00fd2543 doc: fix 2022-11-08 15:02:58 +08:00
5 changed files with 8 additions and 7 deletions

No files matched your search

+1
View File
@@ -13,6 +13,7 @@ on:
- ".github/workflows/release.yml" - ".github/workflows/release.yml"
- "go.mod" - "go.mod"
- "go.sum" - "go.sum"
- "Dockerfile"
jobs: jobs:
release: release:
+2 -2
View File
@@ -10,8 +10,8 @@ WORKDIR /app
COPY ./go.mod ./go.sum ./ COPY ./go.mod ./go.sum ./
RUN go mod download RUN go mod download
COPY . . COPY . .
COPY --from=flutter /app/build/web/* ./cmd/web/dist/ COPY --from=flutter /app/build/web ./cmd/web/dist
RUN go build -tags nosqlite,web -ldflags="-s -w" -o dist/gopeed github.com/monkeyWie/gopeed/cmd/web RUN CGO_ENABLED=0 go build -tags nosqlite,web -ldflags="-s -w" -o dist/gopeed github.com/monkeyWie/gopeed/cmd/web
FROM alpine:3.14.2 FROM alpine:3.14.2
LABEL maintainer="monkeyWie" LABEL maintainer="monkeyWie"
+2 -2
View File
@@ -25,7 +25,7 @@ Gopeed is a high-speed downloader developed by `Golang`+`Flutter`, which support
[To Release](https://github.com/monkeyWie/gopeed/releases/latest) [To Release](https://github.com/monkeyWie/gopeed/releases/latest)
> Tips: If the macos open failed, please execute the `xattr -d com.apple.quarantine /Applications/gopeed.app` command in the terminal > Tips: If the macos open failed, please execute the `xattr -d com.apple.quarantine /Applications/Gopeed.app` command in the terminal
### Command tool ### Command tool
@@ -38,7 +38,7 @@ go install github.com/monkeyWie/gopeed/cmd/gopeed
### Docker ### Docker
```bash ```bash
docker run liwei2633/gopeed:latest -v /path/to/download:/download -p 9999:9999 docker run -d -p 9999:9999 -v /path/to/download:/download liwei2633/gopeed
``` ```
When the docker container is running, you can access the web page through `http://localhost:9999`. When the docker container is running, you can access the web page through `http://localhost:9999`.
+2 -2
View File
@@ -25,7 +25,7 @@ Gopeed 是一款由`Golang`+`Flutter`开发的高速下载器,支持(HTTP、
[点击前往](https://github.com/monkeyWie/gopeed/releases/latest) [点击前往](https://github.com/monkeyWie/gopeed/releases/latest)
> 注:macos 版本运行如果提示损坏,请在终端执行 `xattr -d com.apple.quarantine /Applications/gopeed.app` 命令 > 注:macos 版本运行如果提示损坏,请在终端执行 `xattr -d com.apple.quarantine /Applications/Gopeed.app` 命令
### 命令行工具 ### 命令行工具
@@ -38,7 +38,7 @@ go install github.com/monkeyWie/gopeed/cmd/gopeed
### Docker ### Docker
```bash ```bash
docker run liwei2633/gopeed:latest -v /path/to/download:/download -p 9999:9999 docker run -d -p 9999:9999 -v /path/to/download:/download liwei2633/gopeed
``` ```
当 docker 容器运行时,可以通过 `http://localhost:9999` 访问 web 页面。 当 docker 容器运行时,可以通过 `http://localhost:9999` 访问 web 页面。
+1 -1
View File
@@ -25,7 +25,7 @@ func main() {
} }
cfg := &model.StartConfig{ cfg := &model.StartConfig{
Network: "tcp", Network: "tcp",
Address: "127.0.0.1:9999", Address: "0.0.0.0:9999",
Storage: model.StorageBolt, Storage: model.StorageBolt,
WebEnable: true, WebEnable: true,
WebFS: sub, WebFS: sub,