From 90af72a930bdec43dbd24d86e6ffbef39424c6ca Mon Sep 17 00:00:00 2001 From: lordwelch Date: Sun, 30 May 2021 18:17:58 -0700 Subject: [PATCH] Initial commit --- Dockerfile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..f62be05 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,15 @@ +FROM golang:alpine AS build +WORKDIR /src +ENV CGO_ENABLED=0 + +ARG TARGETOS +ARG TARGETARCH +RUN GOOS=${TARGETOS} GOARCH=${TARGETARCH} GOBIN=/out/ go install -ldflags="-s -w" github.com/anacrolix/dms@latest + +FROM alpine +COPY --from=build /out/dms /bin/dms +# RUN apk add ffmpeg +VOLUME /srv +EXPOSE 1900/udp +EXPOSE 1338/udp +ENTRYPOINT ["/bin/dms"]