mirror of
https://github.com/yeasy/docker_practice.git
synced 2026-08-10 08:27:25 +00:00
应用专业编辑审查:修复版本/引用/技术准确性等 3 处
This commit is contained in:
@@ -323,7 +323,8 @@ journalctl -u docker -n 100 | grep -i "oom"
|
||||
FROM python:3.14-slim
|
||||
WORKDIR /app
|
||||
COPY requirements.txt .
|
||||
RUN pip install -r requirements.txt memory_profiler tracemalloc
|
||||
# tracemalloc 是 Python 标准库模块(自 3.4 起内置),无需安装
|
||||
RUN pip install -r requirements.txt memory_profiler
|
||||
|
||||
COPY app.py .
|
||||
CMD ["python", "-m", "memory_profiler", "app.py"]
|
||||
|
||||
@@ -314,7 +314,7 @@ CREATE DATABASE myappdb OWNER appuser;
|
||||
-- 创建扩展
|
||||
\c myappdb
|
||||
|
||||
CREATE EXTENSION IF NOT EXISTS uuid-ossp;
|
||||
CREATE EXTENSION IF NOT EXISTS "uuid-ossp";
|
||||
CREATE EXTENSION IF NOT EXISTS hstore;
|
||||
CREATE EXTENSION IF NOT EXISTS pg_trgm;
|
||||
|
||||
|
||||
@@ -221,8 +221,7 @@ CI/CD 集成
|
||||
├── Buildx(多架构构建)
|
||||
├── Skopeo(镜像管理)
|
||||
├── Podman(替代方案)
|
||||
├── Buildah(镜像构建)
|
||||
└── Kollabot
|
||||
└── Buildah(镜像构建)
|
||||
```
|
||||
**学习资源:**
|
||||
|
||||
|
||||
Reference in New Issue
Block a user