fix: 使用国内镜像加速Docker构建 [AC-AISVC-01]
This commit is contained in:
parent
7c8e4b6dc7
commit
366f38e17f
|
|
@ -1,5 +1,5 @@
|
||||||
# AI Service Admin Frontend Dockerfile
|
# AI Service Admin Frontend Dockerfile
|
||||||
FROM node:20-alpine AS builder
|
FROM docker.1ms.run/node:20-alpine AS builder
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
|
@ -11,7 +11,7 @@ COPY . .
|
||||||
|
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
FROM nginx:alpine
|
FROM docker.1ms.run/nginx:alpine
|
||||||
|
|
||||||
COPY --from=builder /app/dist /usr/share/nginx/html
|
COPY --from=builder /app/dist /usr/share/nginx/html
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
# AI Service Backend Dockerfile
|
# AI Service Backend Dockerfile
|
||||||
FROM python:3.11-slim AS builder
|
FROM docker.1ms.run/python:3.11-slim AS builder
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
|
@ -9,7 +9,7 @@ COPY pyproject.toml .
|
||||||
|
|
||||||
RUN uv pip install --system --no-cache-dir .
|
RUN uv pip install --system --no-cache-dir .
|
||||||
|
|
||||||
FROM python:3.11-slim
|
FROM docker.1ms.run/python:3.11-slim
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue