FROM golang:1.23-alpine AS builder WORKDIR /app COPY go.mod go.sum ./ RUN go mod download COPY . . RUN CGO_ENABLED=0 go build -trimpath -o /ppanel-queue ./apps/queue/queue.go FROM alpine:3.19 RUN apk add --no-cache ca-certificates tzdata ENV TZ=Asia/Shanghai WORKDIR /app COPY --from=builder /ppanel-queue . COPY apps/queue/etc /app/etc CMD ["./ppanel-queue", "-f", "etc/queue.yaml"]