dndmusicbot/Dockerfile.bot

17 lines
385 B
Docker
Raw Permalink Normal View History

2023-08-20 09:43:47 +00:00
FROM golang:1.21-bookworm as builder
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
RUN apt-get update && apt-get -y install \
ca-certificates \
libopus-dev libopusfile-dev \
2023-08-20 09:43:47 +00:00
mpd ffmpeg
COPY --from=builder /src/dndmusicbot /app/
ADD tmpl /app/tmpl
WORKDIR /app
ENTRYPOINT [ "/app/dndmusicbot" ]