update build

This commit is contained in:
mm644706215
2025-07-29 16:54:15 +08:00
parent 9bd77e991e
commit 3d95fc1359
4 changed files with 52 additions and 0 deletions

20
docker/Dockerfile Normal file
View File

@@ -0,0 +1,20 @@
# syntax=docker/dockerfile:1
FROM debian:12-slim
WORKDIR /app
COPY . /app
ENV PATH="/root/.local/bin:$PATH"
# 使用 Here-docs 安装软件
RUN <<EOT
#!/bin/bash
apt-get update
apt-get install -y --no-install-recommends ca-certificates curl
curl -LsSf https://astral.sh/uv/install.sh | sh
uv venv --managed-python -p 3.12 --seed /app/.venv
source /app/.venv/bin/activate
uv sync
uv pip install -e .
EOT
CMD ["bash", "-c", "/app/docker/start.sh"]