2020-10-22 00:11:59 +02:00
|
|
|
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/
|
2020-10-22 00:17:56 +02:00
|
|
|
COPY ./entrypoint.sh /entrypoint.sh
|
2020-10-22 00:11:59 +02:00
|
|
|
WORKDIR /srv
|
|
|
|
RUN apt-get update \
|
|
|
|
&& apt-get install -y libmp3lame0 \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
2020-10-22 00:17:56 +02:00
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|