broadcast/Dockerfile

24 lines
498 B
Docker
Raw Normal View History

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/
COPY ./entrypoint /entrypoint
WORKDIR /srv
RUN apt-get update \
&& apt-get install -y libmp3lame0 \
&& rm -rf /var/lib/apt/lists/*
ENTRYPOINT ["/entrypoint"]