Skip to content

Commit d46518e

Browse files
committed
update client/Dockerfile
1 parent c3cab44 commit d46518e

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

.github/.DS_Store

6 KB
Binary file not shown.

client/Dockerfile.prod

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ WORKDIR /app
44
COPY package*.json ./
55
RUN npm ci
66
COPY . .
7+
8+
# 在这里注入生产环境 API 地址
9+
ARG VITE_API_URL
10+
ENV VITE_API_URL=https://myshkin451.com/api
11+
712
RUN npm run build
813

914
# Serve stage

0 commit comments

Comments
 (0)