1
0
mirror of https://github.com/stryan/mumble-discord-bridge.git synced 2024-11-14 11:45:40 -05:00
mumble-discord-bridge/Dockerfile

20 lines
456 B
Docker
Raw Normal View History

2020-10-29 02:21:07 -04:00
# syntax=docker/dockerfile:experimental
# Stage 1
2020-11-11 23:38:54 -05:00
FROM golang:1.15 as builder
2020-10-29 02:21:07 -04:00
WORKDIR /go/src/app
COPY . .
2021-02-01 16:11:12 -05:00
RUN curl -sfL https://install.goreleaser.com/github.com/goreleaser/goreleaser.sh | sh
RUN ./bin/goreleaser build --skip-validate
2020-10-29 02:21:07 -04:00
# Stage 2
FROM alpine:latest as static
WORKDIR /opt/
RUN apk add opus
2021-02-01 16:11:12 -05:00
COPY --from=builder /go/src/app/dist/mumble-discord-bridge_linux_amd64/mumble-discord-bridge .
2020-10-29 02:21:07 -04:00
# Entry Point
CMD ["/opt/mumble-discord-bridge"]