Add Dockerfile for containeraization

This commit is contained in:
Gabe Kangas
2020-06-09 18:28:07 -07:00
parent a9e1f1e82e
commit bd145fddf0
3 changed files with 19 additions and 1 deletions

10
Dockerfile Normal file
View File

@@ -0,0 +1,10 @@
FROM golang:alpine
EXPOSE 8080 1935
RUN mkdir /app
ADD . /app
WORKDIR /app
RUN apk add --no-cache ffmpeg ffmpeg-libs
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -ldflags '-extldflags "-static"' -o owncast .
RUN ls -al owncast
WORKDIR /app
CMD ["/app/owncast"]