17 lines
369 B
Docker
17 lines
369 B
Docker
FROM golang:1.20 as builder
|
|
WORKDIR /src
|
|
COPY . .
|
|
RUN apt-get update && apt-get -y install libopus-dev libopusfile-dev && \
|
|
go build
|
|
|
|
FROM debian:bullseye-slim
|
|
RUN apt-get update && apt-get -y install \
|
|
ca-certificates \
|
|
libopus-dev libopusfile-dev \
|
|
mpd
|
|
|
|
COPY --from=builder /src/dndmusicbot /app/
|
|
ADD tmpl /app/tmpl
|
|
WORKDIR /app
|
|
ENTRYPOINT [ "/app/dndmusicbot" ]
|