Adds builder action

This commit is contained in:
Alexey Khit
2022-08-20 23:27:02 +03:00
parent cc55281f12
commit d96af31f86
4 changed files with 86 additions and 1 deletions
+11
View File
@@ -0,0 +1,11 @@
ARG BUILD_FROM
FROM $BUILD_FROM
RUN apk add --no-cache git go
WORKDIR app
RUN git clone https://github.com/AlexxIT/go2rtc .
RUN CGO_ENABLED=0 go build -ldflags "-s -w" -trimpath
CMD [ "/app/go2rtc", "-config", "/config/go2rtc.yaml" ]