main:更新 Docker 配置文件,添加镜像及平台支持
变更内容: - 在 `Dockerfile` 中指定 `--platform=linux/amd64`,确保跨平台兼容性。 - 在 `docker-compose.yml` 中新增镜像配置及平台设置,贴合部署需求。 - 优化服务配置以匹配目标环境。
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
FROM python:3.11-slim
|
FROM --platform=linux/amd64 python:3.11-slim
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ services:
|
|||||||
build:
|
build:
|
||||||
context: ..
|
context: ..
|
||||||
dockerfile: deployment/Dockerfile
|
dockerfile: deployment/Dockerfile
|
||||||
|
platform: linux/amd64
|
||||||
ports:
|
ports:
|
||||||
- "8111:8000"
|
- "8111:8000"
|
||||||
environment:
|
environment:
|
||||||
@@ -44,6 +45,7 @@ services:
|
|||||||
build:
|
build:
|
||||||
context: ..
|
context: ..
|
||||||
dockerfile: deployment/Dockerfile
|
dockerfile: deployment/Dockerfile
|
||||||
|
image: crpi-om2xd9y8cmaizszf.cn-beijing.personal.cr.aliyuncs.com/test-namespace-gu/fc-test:latest
|
||||||
environment:
|
environment:
|
||||||
- APP_ENV=development
|
- APP_ENV=development
|
||||||
- LOG_LEVEL=INFO
|
- LOG_LEVEL=INFO
|
||||||
|
|||||||
Reference in New Issue
Block a user