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
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user