Skip to content

Commit

Permalink
Installing ffmpeg would help a lot...
Browse files Browse the repository at this point in the history
  • Loading branch information
COMTOP1 committed Dec 27, 2023
1 parent 2d4179b commit fa7ce87
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
13 changes: 12 additions & 1 deletion forwarder/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,17 @@ RUN echo -n "-X 'main.Version=$STREAMER_VERSION_ARG" > ./ldflags && \

RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="$(cat ./ldflags)" -o /bin/forwarder

EXPOSE 1323
FROM alpine

LABEL site="ystv-streamer-forwarder"

RUN apk update && apk upgrade && \
apk add --no-cache ffmpeg

FROM scratch

LABEL site="ystv-streamer-forwarder"
# Copy binary
COPY --from=build /bin/forwarder /bin/forwarder
EXPOSE 1323
ENTRYPOINT ["/bin/forwarder"]
13 changes: 12 additions & 1 deletion recorder/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,17 @@ RUN echo -n "-X 'main.Version=$STREAMER_VERSION_ARG" > ./ldflags && \

RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="$(cat ./ldflags)" -o /bin/recorder

EXPOSE 1323
FROM alpine

LABEL site="ystv-streamer-recorder"

RUN apk update && apk upgrade && \
apk add --no-cache ffmpeg

FROM scratch

LABEL site="ystv-streamer-recorder"
# Copy binary
COPY --from=build /bin/recorder /bin/recorder
EXPOSE 1323
ENTRYPOINT ["/bin/recorder"]

0 comments on commit fa7ce87

Please sign in to comment.