代码拉取完成,页面将自动刷新
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"]
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。