Skip to content

Instantly share code, notes, and snippets.

@hiroshi-cl
Created March 3, 2019 21:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hiroshi-cl/ee89bc8e551e38aa83dcb75962e10beb to your computer and use it in GitHub Desktop.
Save hiroshi-cl/ee89bc8e551e38aa83dcb75962e10beb to your computer and use it in GitHub Desktop.
websocket-rtmp-publisher
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