mirror of https://github.com/cloudreve/Cloudreve
Merge 3759de99d9
into f73583b370
commit
e73e269e8b
|
@ -4,7 +4,7 @@ before:
|
||||||
hooks:
|
hooks:
|
||||||
- go mod tidy
|
- go mod tidy
|
||||||
- chmod +x ./.build/build-assets.sh
|
- chmod +x ./.build/build-assets.sh
|
||||||
- ./.build/build-assets.sh {{.Version}}
|
- ./.build/build-assets.sh {{.Tag}}
|
||||||
|
|
||||||
builds:
|
builds:
|
||||||
- env:
|
- env:
|
||||||
|
|
18
Dockerfile
18
Dockerfile
|
@ -1,3 +1,19 @@
|
||||||
|
# Build stage
|
||||||
|
|
||||||
|
FROM ghcr.io/goreleaser/goreleaser:v2.10.2 AS builder
|
||||||
|
|
||||||
|
WORKDIR /src
|
||||||
|
|
||||||
|
# Install goreleaser
|
||||||
|
RUN apk add --no-cache bash curl git npm nodejs tar zip
|
||||||
|
RUN npm install -g yarn
|
||||||
|
|
||||||
|
# Perform the build
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
RUN goreleaser build --single-target --snapshot
|
||||||
|
|
||||||
|
# Runtime stage
|
||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
|
|
||||||
WORKDIR /cloudreve
|
WORKDIR /cloudreve
|
||||||
|
@ -17,7 +33,7 @@ ENV CR_ENABLE_ARIA2=1 \
|
||||||
CR_SETTING_DEFAULT_thumb_libraw_enabled=1
|
CR_SETTING_DEFAULT_thumb_libraw_enabled=1
|
||||||
|
|
||||||
COPY .build/aria2.supervisor.conf .build/entrypoint.sh ./
|
COPY .build/aria2.supervisor.conf .build/entrypoint.sh ./
|
||||||
COPY cloudreve ./cloudreve
|
COPY --from=builder /src/dist/*/cloudreve ./cloudreve
|
||||||
|
|
||||||
RUN chmod +x ./cloudreve \
|
RUN chmod +x ./cloudreve \
|
||||||
&& chmod +x ./entrypoint.sh
|
&& chmod +x ./entrypoint.sh
|
||||||
|
|
Loading…
Reference in New Issue