File size: 665 Bytes
2baa1dd f72e076 3128921 16902dd f72e076 2baa1dd f72e076 2baa1dd 73ad9a5 16902dd 3128921 6fa8096 16902dd f72e076 3128921 2baa1dd f72e076 905702b f72e076 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | 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 |