From 9f14b77cbc6cc025f9adf5a7c844ce4dd32a8209 Mon Sep 17 00:00:00 2001 From: jrhlh <150811537+jrhlh@users.noreply.github.com> Date: Fri, 18 Jul 2025 22:47:51 +0800 Subject: [PATCH] 1 --- docker-compose.yml | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 084e487..45abe4f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,30 +1,22 @@ version: '3.8' services: backend: - image: python:3.11-bookworm # 使用Debian-based的官方镜像 + build: ./back container_name: backend ports: - "7792:5000" volumes: - ./back:/app - working_dir: /app environment: - FLASK_ENV=development - command: > - sh -c "python -m pip install --upgrade pip && - pip install -r requirements.txt && - python app.py" depends_on: - frontend - frontend: - image: node:21 + build: ./platform container_name: frontend ports: - "7793:5173" volumes: - ./platform:/app - working_dir: /app environment: - - NODE_ENV=development - command: sh -c "npm install && npm run dev" \ No newline at end of file + - NODE_ENV=development \ No newline at end of file