Update Dockerfile
Browse files14 unmodified lines15161718192014 unmodified lines353637383940414254 unmodified lines97989910010110210310473 unmodified lines17817918018118218318414 unmodified lines# 基础工具curl \sudo \wget \ca-certificates \# 编译工具(用于nginx编译)14 unmodified lines&& rm -rf /var/cache/apk/*# 创建nginx用户和组# RUN addgroup -g 101 -S nginx && \# adduser -S -D -H -u 101 -h /var/cache/nginx -s /sbin/nologin -G nginx -g nginx nginx# 下载并编译安装nginx主线版本RUN cd /tmp && \54 unmodified lines# 创建nginx配置文件(修改端口为7860)# 屏蔽警告?: nginx: [warn] the "user" directive makes sense only if the master process runs with super-user privileges, ignored in /etc/nginx/nginx.conf:1# RUN echo 'user nginx;' > /etc/nginx/nginx.conf && \RUN echo 'worker_processes auto;' >> /etc/nginx/nginx.conf && \echo 'error_log /var/log/nginx/error.log;' >> /etc/nginx/nginx.conf && \echo 'pid /var/run/nginx.pid;' >> /etc/nginx/nginx.conf && \echo '' >> /etc/nginx/nginx.conf && \73 unmodified linesecho 'nginx -t' >> /start.sh && \echo 'echo ""' >> /start.sh && \echo 'echo "Starting nginx on port 7860..."' >> /start.sh && \echo 'nginx -g "daemon off;"' >> /start.sh && \chmod +x /start.sh# 设置工作目录14 unmodified lines1516171819202114 unmodified lines363738394041424354 unmodified lines989910010110210310410573 unmodified lines17918018118218318418514 unmodified lines# 基础工具curl \sudo \gosu \wget \ca-certificates \# 编译工具(用于nginx编译)14 unmodified lines&& rm -rf /var/cache/apk/*# 创建nginx用户和组RUN addgroup -g 101 -S nginx && \adduser -S -D -H -u 101 -h /var/cache/nginx -s /sbin/nologin -G nginx -g nginx nginx# 下载并编译安装nginx主线版本RUN cd /tmp && \54 unmodified lines# 创建nginx配置文件(修改端口为7860)# 屏蔽警告?: nginx: [warn] the "user" directive makes sense only if the master process runs with super-user privileges, ignored in /etc/nginx/nginx.conf:1RUN echo 'user nginx;' > /etc/nginx/nginx.conf && \echo 'worker_processes auto;' >> /etc/nginx/nginx.conf && \echo 'error_log /var/log/nginx/error.log;' >> /etc/nginx/nginx.conf && \echo 'pid /var/run/nginx.pid;' >> /etc/nginx/nginx.conf && \echo '' >> /etc/nginx/nginx.conf && \73 unmodified linesecho 'nginx -t' >> /start.sh && \echo 'echo ""' >> /start.sh && \echo 'echo "Starting nginx on port 7860..."' >> /start.sh && \echo 'exec gosu root nginx -g "daemon off;"' >> /start.sh && \chmod +x /start.sh# 设置工作目录
Dockerfile+6-5