main:更新 Docker 配置文件,添加镜像及平台支持

变更内容:
- 在 `Dockerfile` 中指定 `--platform=linux/amd64`,确保跨平台兼容性。
- 在 `docker-compose.yml` 中新增镜像配置及平台设置,贴合部署需求。
- 优化服务配置以匹配目标环境。
This commit is contained in:
2026-02-03 15:44:42 +08:00
parent c0bd4760b1
commit c3e16dcad3
2 changed files with 3 additions and 1 deletions

View File

@@ -1,4 +1,4 @@
FROM python:3.11-slim
FROM --platform=linux/amd64 python:3.11-slim
WORKDIR /app

View File

@@ -5,6 +5,7 @@ services:
build:
context: ..
dockerfile: deployment/Dockerfile
platform: linux/amd64
ports:
- "8111:8000"
environment:
@@ -44,6 +45,7 @@ services:
build:
context: ..
dockerfile: deployment/Dockerfile
image: crpi-om2xd9y8cmaizszf.cn-beijing.personal.cr.aliyuncs.com/test-namespace-gu/fc-test:latest
environment:
- APP_ENV=development
- LOG_LEVEL=INFO