This commit is contained in:
parent
7b3e844f6d
commit
1b930ab82f
29
Dockerfile
Normal file
29
Dockerfile
Normal file
|
@ -0,0 +1,29 @@
|
|||
FROM golang:1.18rc1-bullseye
|
||||
|
||||
WORKDIR /src
|
||||
|
||||
RUN DEBIAN_FRONTEND=noninteractive apt update && \
|
||||
DEBIAN_FRONTEND=noninteractive apt install -y \
|
||||
git build-essential autoconf automake libtool \
|
||||
libflac-dev libopus-dev libopusfile-dev libsamplerate0-dev libmp3lame-dev && \
|
||||
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"]
|
|
@ -44,6 +44,12 @@ $ go run .
|
|||
$ go run git.gammaspectra.live/S.O.N.G/MeteorLight@<commit_hash>
|
||||
```
|
||||
|
||||
### From Docker/Podman
|
||||
```shell
|
||||
$ docker build -t meteorlight .
|
||||
$ docker run --rm -it -v "$(pwd)/config.toml:/config.toml:ro" -v "$(pwd)/fallback.flac:/fallback.flac:ro" -p 8001:8001 -p 127.0.0.1:4040:4040 meteorlight
|
||||
```
|
||||
|
||||
## API
|
||||
See [kawa API](https://github.com/Luminarys/kawa#api) for a general overview. Additional endpoints or changed ones are listed below.
|
||||
|
||||
|
|
Loading…
Reference in a new issue