Files
jukebox_maker/Dockerfile
Michael Chus 28ca583073 Fix Dockerfile: bump builder to golang:1.25-alpine
go.mod requires go 1.25.0 (generated by local go 1.26).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-23 21:35:16 +03:00

23 lines
502 B
Docker

FROM golang:1.25-alpine AS builder
WORKDIR /src
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" \
-o /out/jukebox ./cmd/jukebox
FROM alpine:3.19
RUN apk add --no-cache tzdata ca-certificates
WORKDIR /app
COPY --from=builder /out/jukebox .
VOLUME ["/media", "/mnt/usb", "/config"]
EXPOSE 8080
ENTRYPOINT ["/app/jukebox"]
CMD ["--config", "/config/config.json", "--addr", ":8080", "--media", "/media", "--mount", "/mnt/usb"]