Some checks failed
Docker / docker (push) Has been cancelled
- Dockerfile: replace s6overlay with multi-stage build (golang:1.22-alpine builder + alpine:3.19 runtime), compiles from source, no goreleaser needed - docker/entrypoint.sh: PUID/PGID support via su-exec - .gitea/workflows/docker.yml: auto-build and push to Gitea container registry on every master commit (linux/amd64 + linux/arm64) - README: add tmdb api_key docs, update Docker section to point to forge.dilain.com registry, add Unraid setup section Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
32 lines
572 B
Docker
32 lines
572 B
Docker
# Build stage
|
|
FROM golang:1.22-alpine AS builder
|
|
|
|
WORKDIR /build
|
|
COPY . .
|
|
|
|
RUN CGO_ENABLED=0 go build \
|
|
-ldflags="-s -w" \
|
|
-trimpath \
|
|
-o nabarr \
|
|
./cmd/nabarr
|
|
|
|
# Runtime stage
|
|
FROM alpine:3.19
|
|
|
|
RUN apk add --no-cache ca-certificates tzdata su-exec
|
|
|
|
COPY --from=builder /build/nabarr /app/nabarr
|
|
COPY docker/entrypoint.sh /entrypoint.sh
|
|
RUN chmod +x /entrypoint.sh
|
|
|
|
ENV \
|
|
APP_CONFIG="/config/config.yml" \
|
|
APP_CACHE="/config/cache" \
|
|
APP_LOG="/config/activity.log" \
|
|
APP_VERBOSITY="0"
|
|
|
|
VOLUME ["/config"]
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|
|
CMD ["run"]
|