Rename the Go module, the cmd/ entrypoint dir, the binary, the default config dir (~/.config/av1dae/), the Docker image/compose service, and all docs and the dashboard wordmark. No behavioral change — import paths and identifiers only.
19 lines
746 B
Docker
19 lines
746 B
Docker
# Build needs cgo (the logger uses github.com/mattn/go-sqlite3), so no scratch/static image.
|
|
FROM golang:1.26-bookworm AS build
|
|
WORKDIR /src
|
|
COPY go.mod go.sum ./
|
|
RUN go mod download
|
|
COPY . .
|
|
RUN CGO_ENABLED=1 go build -ldflags="-s -w" -o /av1dae ./cmd/av1dae/
|
|
|
|
FROM debian:bookworm-slim
|
|
# ffmpeg gives ffmpeg+ffprobe; opus-tools gives opusenc; ca-certificates for OMDb/TVmaze HTTPS.
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
ffmpeg opus-tools ca-certificates \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
COPY --from=build /av1dae /usr/local/bin/av1dae
|
|
# logs.db + log files land in the working dir — make it the mounted /data so they persist.
|
|
WORKDIR /data
|
|
EXPOSE 8080
|
|
ENTRYPOINT ["av1dae", "-c", "/config/config.yaml"]
|