FROM drfyup/notdia_fy:1107 # 安装 Nginx RUN apt-get update && apt-get install -y nginx && apt-get install -y sed RUN sed -i 's/gpt-apikeyserver.qingzhu-us.workers.dev/keysed.apt.us.kg/g' /app/urldb.py RUN sed -i 's/not-diamond-workers.t7-cc4.workers.dev/notsed.apt.us.kg/g' /app/notdiamond_api.py RUN sed -i "s/remote_config\['seconds_limite'\]/1/g" /app/app.py # 创建临时目录并设置权限 RUN mkdir -p /tmp/nginx/body /tmp/nginx/fastcgi /tmp/nginx/proxy /tmp/nginx/scgi /tmp/nginx/uwsgi \ && chmod 777 -R /tmp/nginx # 复制 Nginx 配置文件 COPY nginx.conf /etc/nginx/nginx.conf WORKDIR /app EXPOSE 7860 RUN chmod 777 -R /app COPY start.sh /start.sh RUN chmod +x /start.sh ENTRYPOINT ["/start.sh"]