mirror of
https://github.com/horgh/videostreamer.git
synced 2025-09-26 12:31:18 +08:00
Add Dockerfile
This commit is contained in:
10
Dockerfile
Normal file
10
Dockerfile
Normal file
@@ -0,0 +1,10 @@
|
||||
FROM golang:1.13-buster AS build
|
||||
RUN apt-get update && apt-get install -y git-core pkg-config libavutil-dev libavcodec-dev libavformat-dev libavdevice-dev
|
||||
WORKDIR /videostreamer
|
||||
ADD . /videostreamer
|
||||
RUN go build
|
||||
|
||||
FROM debian:buster
|
||||
RUN apt-get update && apt-get install -y libavutil56 libavcodec58 libavformat58 libavdevice58
|
||||
COPY --from=build /videostreamer/videostreamer /
|
||||
CMD ["/videostreamer"]
|
Reference in New Issue
Block a user