Update registry to registry.667788.cool and add build scripts
Some checks failed
Build and Deploy / test-backend (push) Has been cancelled
Build and Deploy / build-backend (push) Has been cancelled
Build and Deploy / build-admin (push) Has been cancelled
Deploy to Production / build-backend (push) Has been cancelled
Deploy to Production / deploy (push) Has been cancelled

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
bujie9527
2026-02-05 22:34:17 +08:00
parent 9c0f6153b8
commit ed3a5c0486
4 changed files with 227 additions and 3 deletions

View File

@@ -1,6 +1,8 @@
# 生产环境 Backend Dockerfile
# 用途:构建优化的生产镜像
FROM python:3.12-slim AS builder
# 支持通过构建参数指定基础镜像(默认使用官方镜像)
ARG PYTHON_IMAGE=python:3.12-slim
FROM ${PYTHON_IMAGE} AS builder
WORKDIR /app
@@ -16,7 +18,8 @@ COPY backend/requirements.txt .
RUN pip install --no-cache-dir --user -r requirements.txt
# 生产镜像
FROM python:3.12-slim
ARG PYTHON_IMAGE=python:3.12-slim
FROM ${PYTHON_IMAGE}
WORKDIR /app