File tree 2 files changed +16
-14
lines changed
2 files changed +16
-14
lines changed Original file line number Diff line number Diff line change @@ -8,14 +8,13 @@ RUN CGO_ENABLED=0 go build -tags nosqlite,web \
8
8
-ldflags="-s -w -X github.com/GopeedLab/gopeed/pkg/base.Version=$VERSION -X github.com/GopeedLab/gopeed/pkg/base.InDocker=true" \
9
9
-o dist/gopeed github.com/GopeedLab/gopeed/cmd/web
10
10
11
- FROM alpine:3.14.2
11
+ FROM alpine:3.18
12
12
LABEL maintainer="monkeyWie"
13
13
WORKDIR /app
14
14
COPY --from=go /app/dist/gopeed ./
15
15
COPY entrypoint.sh ./entrypoint.sh
16
16
RUN apk update && \
17
- apk upgrade --no-cache && \
18
- apk add --no-cache bash su-exec; \
17
+ apk add --no-cache su-exec ; \
19
18
chmod +x ./entrypoint.sh && \
20
19
rm -rf /var/cache/apk/*
21
20
VOLUME ["/app/storage" ]
Original file line number Diff line number Diff line change 1
- version : ' 3'
2
-
3
1
services :
4
- gopeed :
5
- container_name : gopeed
6
- ports :
7
- - " 9999:9999" # HTTP port (host:container)
8
- image : liwei2633/gopeed
9
- volumes :
10
- - ~/gopeed/Downloads:/app/Downloads # mount download path
11
- # - ~/gopeed/storage:/app/storage # if you need to mount storage path, uncomment this line
12
- restart : unless-stopped
2
+ gopeed :
3
+ container_name : gopeed
4
+ ports :
5
+ - 9999:9999 # HTTP port (host:container)
6
+ environment :
7
+ - PUID=0
8
+ - PGID=0
9
+ - UMASK=022
10
+ volumes :
11
+ - ~/gopeed/Downloads:/app/Downloads # mount download path
12
+ # - ~/gopeed/storage:/app/storage # if you need to mount storage path, uncomment this line
13
+ restart : unless-stopped
14
+ image : liwei2633/gopeed
15
+ # command: -u Username -p Password # optional authentication
You can’t perform that action at this time.
0 commit comments