FROM golang:1.15 AS builder ENV DEBIAN_FRONTEND=noninteractive COPY ./broadcast /broadcast WORKDIR /broadcast RUN apt-get update \ && apt-get install -y libmp3lame-dev \ && go get -u ./... \ && rm -rf /var/lib/apt/lists/* FROM debian:stable ENV DEBIAN_FRONTEND=noninteractive COPY --from=builder /go/bin/broadcast /srv/ COPY ./entrypoint.sh /entrypoint.sh WORKDIR /srv RUN apt-get update \ && apt-get install -y libmp3lame0 \ && rm -rf /var/lib/apt/lists/* ENTRYPOINT ["/entrypoint.sh"]