1 Star 10 Fork 6

Ryan Newman / alpine-live-rtmp-hls

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Dockerfile 1.26 KB
一键复制 编辑 原始数据 按行查看 历史
Ryan Newman 提交于 2017-12-23 18:42 . 更新 Dockerfile
FROM alpine:latest
MAINTAINER Ryan_Newman <15244909057.ww@gmail.com>
# use china souce
# copy ./apk/repositories /etc/apk/repositories
# update software
RUN apk update
RUN apk upgrade
#set timezone
RUN apk add ca-certificates && \
apk add tzdata && \
ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
echo "Asia/Shanghai" > /etc/timezone
# install nodejs
# RUN apk add nodejs
# install nginx
RUN apk add nginx vim
# install rtmp plugin
RUN apk add nginx-mod-rtmp
# install supervisor
RUN apk add supervisor
# install nodejs nodejs-npm
# RUN apk add nodejs-npm
# RUN npm install -g cnpm --registry=https://registry.npm.taobao.org
# copy configure file
## nginx conf
ADD ./nginx/nginx.conf /etc/nginx/nginx.conf
## supervisor conf
ADD ./supervisor/supervisord.conf /etc/supervisor/supervisord.conf
ADD ./supervisor/conf.d/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
# install ffmpeg and aac plugin
RUN apk add ffmpeg faac
# create needs folder and permission
RUN mkdir /var/tmp/hls
RUN mkdir /var/log/supervisor
RUN mkdir /run/nginx
#WORKDIR /mydata/liveapi
# run container
EXPOSE 80 1935 3000
CMD ["/usr/bin/supervisord","-c","/etc/supervisor/supervisord.conf"]
Docker
1
https://gitee.com/RyanNewman/alpine-live-rtmp-hls.git
git@gitee.com:RyanNewman/alpine-live-rtmp-hls.git
RyanNewman
alpine-live-rtmp-hls
alpine-live-rtmp-hls
master

搜索帮助