dndmusicbot/Dockerfile.bot

16 lines
414 B
Docker
Raw Normal View History

FROM golang:1.21-alpine3.18 as builder
2023-11-03 00:17:05 +00:00
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" ]