From 5737eee2c370f74933c0365a5b2ccb6ab6b13aac Mon Sep 17 00:00:00 2001 From: "mula.liu" Date: Tue, 2 Dec 2025 21:45:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=BA=86=E5=9B=BD=E5=86=85?= =?UTF-8?q?=E9=95=9C=E5=83=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/Dockerfile | 2 +- docker-compose.yml | 4 ++-- frontend/Dockerfile | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/backend/Dockerfile b/backend/Dockerfile index b24aeac..ed01275 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -1,5 +1,5 @@ # Backend Dockerfile for Cosmo -FROM python:3.12-slim +FROM swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/python:3.12-slim # Set working directory WORKDIR /app diff --git a/docker-compose.yml b/docker-compose.yml index 3b83379..89d7036 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -3,7 +3,7 @@ version: '3.8' services: # PostgreSQL Database postgres: - image: postgres:15-alpine + image: swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/postgres:15-alpine container_name: cosmo_postgres restart: unless-stopped environment: @@ -26,7 +26,7 @@ services: # Redis Cache redis: - image: redis:7-alpine + image: swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/redis:7-alpine container_name: cosmo_redis restart: unless-stopped command: > diff --git a/frontend/Dockerfile b/frontend/Dockerfile index d06da24..c549a6f 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -1,7 +1,7 @@ # Frontend Dockerfile for Cosmo (Multi-stage build) # Stage 1: Build -FROM node:22-alpine AS builder +FROM swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/node:22-alpine AS builder WORKDIR /app @@ -22,7 +22,7 @@ ENV VITE_API_BASE_URL=$VITE_API_BASE_URL RUN npm run build # Stage 2: Production with Nginx -FROM nginx:1.25-alpine +FROM swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/nginx:1.25-alpine # Copy built files from builder COPY --from=builder /app/dist /usr/share/nginx/html