Compare commits
2 Commits
5ca6ce71e0
...
ad31f8246e
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ad31f8246e | ||
|
|
2694c8962f |
@@ -4,6 +4,9 @@
|
||||
# Base images use DaoCloud public mirror (大陆可访问): docker.io → docker.m.daocloud.io
|
||||
# See https://github.com/DaoCloud/public-image-mirror
|
||||
#
|
||||
# The ``api`` service is built from ``Dockerfile``: Debian apt → 阿里云, uv/PyPI → 清华,
|
||||
# PyTorch CPU wheels / pytorch.org index files → 南大镜像; see Dockerfile for details.
|
||||
#
|
||||
# Published API port defaults to 38080 on the host (override with API_PORT).
|
||||
#
|
||||
# GPU (NVIDIA) inference: uv.lock pins torch/torchvision from the PyTorch *CPU* index (see pyproject.toml).
|
||||
@@ -30,6 +33,9 @@ services:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
args:
|
||||
# 大陆默认经 DaoCloud;若拉取失败可 export PYTHON_BASE_IMAGE=docker.io/library/python:3.13-slim-bookworm 后 build
|
||||
PYTHON_BASE_IMAGE: ${PYTHON_BASE_IMAGE:-m.daocloud.io/docker.io/library/python:3.13-slim-bookworm}
|
||||
environment:
|
||||
POSTGRES_USER: ${POSTGRES_USER:-postgres}
|
||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:?Set POSTGRES_PASSWORD}
|
||||
|
||||
Reference in New Issue
Block a user