MeteorLight/Dockerfile

29 lines
867 B
Docker
Raw Normal View History

2022-04-20 08:58:03 +00:00
FROM golang:1.18-bullseye
2022-03-02 18:11:12 +00:00
WORKDIR /src
RUN DEBIAN_FRONTEND=noninteractive apt update && \
DEBIAN_FRONTEND=noninteractive apt install -y \
git build-essential autoconf automake libtool \
2022-04-20 08:58:03 +00:00
libflac-dev libopus-dev libopusfile-dev libsamplerate0-dev libmp3lame-dev libebur128-dev && \
2022-03-02 18:11:12 +00:00
git clone --depth 1 https://github.com/xiph/libopusenc.git && cd libopusenc && \
./autogen.sh && \
./configure --prefix /usr && \
make && \
make install && \
cd .. && \
git clone --depth 1 https://github.com/mstorsjo/fdk-aac.git && cd fdk-aac && \
./autogen.sh && \
./configure --prefix /usr && \
make -j$(nproc) && \
make install && \
cd .. && \
rm -rf /src/libopusenc /src/fdk-aac
COPY . /code
WORKDIR /code
RUN go build -v -o /usr/bin/MeteorLight . && rm -rf /code
WORKDIR /
ENTRYPOINT ["/usr/bin/MeteorLight"]