now-playing/Dockerfile
AKP 32863b1ad1
Add Dockerfile
The Go version had to be dropped since 1.24 is too new to have hit the repos yet.
2025-02-15 14:17:45 +00:00

12 lines
No EOL
319 B
Docker

FROM golang:1 as builder
RUN mkdir /build
ADD . /build/
WORKDIR /build
RUN CGO_ENABLED=0 GOOS=linux go build -a -buildvcs=false -installsuffix cgo -ldflags '-extldflags "-static" -s -w' -o main git.tdpain.net/codemicro/now-playing/nowplaying
FROM alpine
COPY --from=builder /build/main /
WORKDIR /run
CMD ["../main"]