2023-08-20 09:43:47 +00:00
|
|
|
FROM golang:1.21-bookworm as builder
|
2023-03-30 16:44:53 +00:00
|
|
|
WORKDIR /src
|
|
|
|
COPY . .
|
|
|
|
RUN apt-get update && apt-get -y install libopus-dev libopusfile-dev && \
|
|
|
|
go build
|
|
|
|
|
2023-08-20 09:43:47 +00:00
|
|
|
FROM debian:bookworm-slim
|
2023-03-30 16:44:53 +00:00
|
|
|
RUN apt-get update && apt-get -y install \
|
|
|
|
ca-certificates \
|
|
|
|
libopus-dev libopusfile-dev \
|
2023-11-02 20:30:29 +00:00
|
|
|
mpd ffmpeg curl && \
|
|
|
|
curl -L https://github.com/badaix/snapcast/releases/download/v0.27.0/snapclient_0.27.0-1_without-pulse_amd64.deb -o /tmp/snapcast.deb && \
|
|
|
|
curl -L http://ftp.no.debian.org/debian/pool/main/f/flac/libflac8_1.3.3-2+deb11u2_amd64.deb -o /tmp/libflac8.deb && \
|
|
|
|
apt -y install /tmp/snapcast.deb /tmp/libflac8.deb
|
2023-03-30 16:44:53 +00:00
|
|
|
COPY --from=builder /src/dndmusicbot /app/
|
|
|
|
ADD tmpl /app/tmpl
|
|
|
|
WORKDIR /app
|
|
|
|
ENTRYPOINT [ "/app/dndmusicbot" ]
|