commit 90af72a930bdec43dbd24d86e6ffbef39424c6ca Author: lordwelch Date: Sun May 30 18:17:58 2021 -0700 Initial commit 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"]