build using makefile

This commit is contained in:
Simon Ding
2025-09-02 15:33:17 +08:00
parent bfd97c62d4
commit 44158b3df0
2 changed files with 8 additions and 2 deletions

View File

@@ -15,7 +15,7 @@ RUN go mod download
COPY . .
# 指定OS等并go build
RUN CGO_ENABLED=0 go build -o polaris -ldflags="-X polaris/db.Version=$(git describe --tags --long) -X polaris/db.DefaultTmdbApiKey=$(echo $TMDB_API_KEY)" ./cmd/polaris
RUN make polaris-web
FROM debian:stable-slim