mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-13 11:53:41 +00:00
fix: docker executable (#49)
This commit is contained in:
1 parent
dc00fd2543
commit
ee81ebffef
3 files changed
+3
-3
No files matched your search
+1
-1
@@ -11,7 +11,7 @@ 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"
|
||||||
|
|||||||
@@ -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 liwei2633/gopeed -v /path/to/download:/download -p 9999:9999
|
||||||
```
|
```
|
||||||
|
|
||||||
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`.
|
||||||
|
|||||||
+1
-1
@@ -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 liwei2633/gopeed -v /path/to/download:/download -p 9999:9999
|
||||||
```
|
```
|
||||||
|
|
||||||
当 docker 容器运行时,可以通过 `http://localhost:9999` 访问 web 页面。
|
当 docker 容器运行时,可以通过 `http://localhost:9999` 访问 web 页面。
|
||||||
|
|||||||
Reference in new issue
Block a user