now-playing/Dockerfile

12 lines
309 B
Docker
Raw Normal View History

2024-12-01 13:25:30 +00:00
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
2024-12-01 13:25:30 +00:00
COPY --from=build /workdir/app app
ENTRYPOINT ["/app"]