fix: docker executable (#49)

This commit is contained in:
monkeyWie authored and GitHub committed 2022-11-08 21:49:02 +08:00
1 parent dc00fd2543
commit ee81ebffef
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -11,7 +11,7 @@ COPY ./go.mod ./go.sum ./
RUN go mod download
COPY . .
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
LABEL maintainer="monkeyWie"
+1 -1
View File
@@ -38,7 +38,7 @@ go install github.com/monkeyWie/gopeed/cmd/gopeed
### Docker
```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`.
+1 -1
View File
@@ -38,7 +38,7 @@ go install github.com/monkeyWie/gopeed/cmd/gopeed
### Docker
```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 页面。