diff --git a/Dockerfile b/Dockerfile index 6217fc0..b45c90f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,7 +20,7 @@ RUN pnpm run build # 2️⃣ 生产部署阶段(用 nginx 托管) -FROM images.lihailezzc.com/library/node:20-alpine +FROM images.lihailezzc.com/library/nginx:alpine # 拷贝构建好的 dist 到 nginx 的 html 目录 COPY --from=build /app/dist /usr/share/nginx/html diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..da2f352 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,8 @@ +version: "3" + +services: + api_client: + container_name: api_client + image: client + ports: + - 5001:80 \ No newline at end of file