16 lines
414 B
Docker
16 lines
414 B
Docker
FROM golang:1.21-alpine3.18 as builder
|
|
|
|
RUN apk update && apk upgrade --no-cache && \
|
|
apk add build-base pkgconfig ffmpeg-dev opus-dev opusfile-dev
|
|
WORKDIR /src
|
|
COPY . .
|
|
RUN CGO_ENABLED=1 go build
|
|
|
|
FROM alpine:3.18
|
|
RUN apk update && apk upgrade --no-cache && \
|
|
apk add ffmpeg-libs opus-dev opusfile-dev
|
|
COPY --from=builder /src/dndmusicbot /app/
|
|
ADD tmpl /app/tmpl
|
|
WORKDIR /app
|
|
ENTRYPOINT [ "/app/dndmusicbot" ]
|