now-playing/Dockerfile

12 lines
309 B
Docker

FROM golang:1.23.3 as build
WORKDIR /workdir
COPY go.mod go.sum /workdir/
RUN go mod download
COPY . /workdir
RUN go build -ldflags='-s -w' -o app .
FROM debian:bookworm-slim
RUN apt update -y && apt upgrade -y && apt install ca-certificates openssl -y
COPY --from=build /workdir/app app
ENTRYPOINT ["/app"]