tv / Dockerfile
PXHero's picture
Update Dockerfile
3128921 verified
Raw
History Blame Contribute Delete
665 Bytes
FROM nginx:alpine
# 修复:Alpine 里 awk 叫 gawk!
RUN apk add --no-cache curl wget sed gawk grep bash jq python3 py3-pip py3-yaml
# 创建文件目录并授权
RUN mkdir -p /usr/share/nginx/html/files && \
chmod -R 777 /usr/share/nginx/html/files
# 复制所有文件
COPY files/ /usr/share/nginx/html/files/
COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY index.html /usr/share/nginx/html/index.html
COPY iptv.sh /iptv.sh
COPY clash.sh /clash.sh
COPY start.sh /start.sh
# 给脚本执行权限
RUN chmod +x /iptv.sh /clash.sh /start.sh
# 启动:运行采集脚本 + 启动 Nginx(每30分钟自动更新)
EXPOSE 7860
CMD /bin/bash /start.sh