Browse Source

feat: 修改镜像和端口问题

大侠咬超人 4 days ago
parent
commit
946a130493
2 changed files with 2 additions and 2 deletions
  1. 1 1
      Dockerfile
  2. 1 1
      docker-compose.yml

+ 1 - 1
Dockerfile

@@ -28,7 +28,7 @@ RUN bun run build
 # ========================================
 # 第二阶段:PHP 运行时
 # ========================================
-FROM php:8.3-cli-alpine AS runtime
+FROM php:8.3-alpine AS runtime
 
 # 安装系统依赖 - 使用阿里云镜像
 RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories && \

+ 1 - 1
docker-compose.yml

@@ -5,7 +5,7 @@ services:
     container_name: math_cms_app
     command: php artisan serve --host=0.0.0.0 --port=8000
     ports:
-      - "9090:8000"
+      - "5019:8000"
     env_file:
       - .env
     volumes: