Initial commit

This commit is contained in:
lordwelch 2021-05-30 18:17:58 -07:00
commit 90af72a930

15
Dockerfile Normal file
View File

@ -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"]