Initial commit
This commit is contained in:
commit
90af72a930
15
Dockerfile
Normal file
15
Dockerfile
Normal 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"]
|
Loading…
x
Reference in New Issue
Block a user