FROM docker-dev.xyue.zip:8443/nginx-php-fpm:7.4 # 设置工作目录 WORKDIR /app # 复制 admin_panel_backend 目录所有文件到容器的/app目录下 COPY . . # 复制php-fpm配置文件 COPY www.conf /usr/local/etc/php-fpm.d/worker.conf # 复制nginx配置文件 COPY nginx.conf /etc/nginx/worker.conf # Composer 安装 RUN composer install --no-dev --prefer-dist # 增加执行权限 RUN chmod a+rwx /app/Applications/YourApp # 暴露 Nginx 监听的端口 EXPOSE 80 EXPOSE 7373 RUN chmod +x /app/start.sh # CMD to execute startup script CMD ["/app/start.sh"]