08ea5fbe98
添加用户管理视图、API和状态管理文件
27 lines
468 B
Docker
27 lines
468 B
Docker
FROM node:20-alpine AS builder
|
|
|
|
WORKDIR /app
|
|
|
|
COPY package*.json ./
|
|
|
|
RUN npm ci --only=production
|
|
|
|
COPY . .
|
|
|
|
RUN npm run build:h5
|
|
|
|
FROM nginx:alpine
|
|
|
|
RUN apk add --no-cache tzdata && \
|
|
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
|
|
echo "Asia/Shanghai" > /etc/timezone && \
|
|
apk del tzdata
|
|
|
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
|
|
|
COPY --from=builder /app/dist/build/h5 /usr/share/nginx/html
|
|
|
|
EXPOSE 80
|
|
|
|
CMD ["nginx", "-g", "daemon off;"]
|