forked from External/mediamtx
add initial dockerfile
This commit is contained in:
parent
09ad8e7160
commit
6934441a5e
1 changed files with 17 additions and 0 deletions
17
Dockerfile
Normal file
17
Dockerfile
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
## build ergo binary
|
||||||
|
FROM docker.io/golang:1.22-alpine AS build-env
|
||||||
|
|
||||||
|
RUN apk upgrade -U --force-refresh --no-cache
|
||||||
|
RUN apk add --no-cache --purge --clean-protected -l -u make git
|
||||||
|
|
||||||
|
# copy ergo source
|
||||||
|
WORKDIR /go/src/cef.icu/mediamtx
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
RUN go generate ./...
|
||||||
|
RUN CGO_ENABLED=0 go build .
|
||||||
|
WORKDIR /mediamtx
|
||||||
|
RUN mkdir conf && cp /go/src/cef.icu/mediamtx/mediamtx .
|
||||||
|
|
||||||
|
EXPOSE 8189/udp 8198/tcp 1935/tcp 8889/tcp 9997/tcp
|
||||||
|
ENTRYPOINT ["/mediamtx/mediamtx"]
|
||||||
Loading…
Add table
Add a link
Reference in a new issue