dms/Dockerfile
2021-05-30 18:17:58 -07:00

16 lines
340 B
Docker

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