Created
March 3, 2019 21:54
-
-
Save hiroshi-cl/ee89bc8e551e38aa83dcb75962e10beb to your computer and use it in GitHub Desktop.
websocket-rtmp-publisher
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM alpine:3.9 as builder | |
RUN apk add --update --no-cache git nodejs-dev npm | |
RUN git clone https://github.com/fbsamples/Canvas-Streaming-Example.git && cd Canvas-Streaming-Example && npm install | |
FROM alpine:3.9 as runner | |
RUN apk add --update --no-cache nodejs ffmpeg | |
COPY --from=builder Canvas-Streaming-Example/server.js server.js | |
COPY --from=builder Canvas-Streaming-Example/node_modules node_modules | |
EXPOSE 3000 | |
ENTRYPOINT node server.js |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment