From 9eba27e81438c19224cb0f0934cc145a5999fcf2 Mon Sep 17 00:00:00 2001 From: louis <869322496@qq.com> Date: Sun, 7 Apr 2024 10:19:46 +0800 Subject: [PATCH] opti: build docker file --- docker-compose.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 35e629b..395669a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -53,6 +53,10 @@ services: - 'host.docker.internal:host-gateway' ports: - '${APP_PORT}:${APP_PORT}' + volumes: + # 将容器中huaxin-admin/dist文件夹映射到本地的dist文件夹 + - ./public:/huaxin-admin/public + - ./node_modules:/huaxin-admin/node_modules # 当前服务启动之前先要把depends_on指定的服务启动起来才行 depends_on: - mysql