Compare commits
3 Commits
ad292b5eb8
...
1.0.5
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
693d9673b4 | ||
|
|
7354dbfab5 | ||
|
|
dc682c0c63 |
@@ -1 +1 @@
|
|||||||
VUE_APP_API_BASE_URL=https://apis.lihailezzc.com
|
VUE_APP_API_BASE_URL=https://api.ai-meng.com
|
||||||
@@ -10,6 +10,7 @@ COPY . .
|
|||||||
|
|
||||||
ENV CI=true
|
ENV CI=true
|
||||||
ENV NODE_OPTIONS=--openssl-legacy-provider
|
ENV NODE_OPTIONS=--openssl-legacy-provider
|
||||||
|
RUN npm config set registry https://registry.npmmirror.com
|
||||||
|
|
||||||
RUN npm install pnpm -g
|
RUN npm install pnpm -g
|
||||||
RUN pnpm install --force
|
RUN pnpm install --force
|
||||||
@@ -19,7 +20,7 @@ RUN pnpm run build
|
|||||||
|
|
||||||
|
|
||||||
# 2️⃣ 生产部署阶段(用 nginx 托管)
|
# 2️⃣ 生产部署阶段(用 nginx 托管)
|
||||||
FROM nginx:alpine
|
FROM images.lihailezzc.com/library/nginx:alpine
|
||||||
|
|
||||||
# 拷贝构建好的 dist 到 nginx 的 html 目录
|
# 拷贝构建好的 dist 到 nginx 的 html 目录
|
||||||
COPY --from=build /app/dist /usr/share/nginx/html
|
COPY --from=build /app/dist /usr/share/nginx/html
|
||||||
|
|||||||
8
docker-compose.yml
Normal file
8
docker-compose.yml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
version: "3"
|
||||||
|
|
||||||
|
services:
|
||||||
|
api_client:
|
||||||
|
container_name: api_client
|
||||||
|
image: client
|
||||||
|
ports:
|
||||||
|
- 5001:80
|
||||||
Reference in New Issue
Block a user