update build
This commit is contained in:
20
docker/Dockerfile
Normal file
20
docker/Dockerfile
Normal 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"]
|
||||
Reference in New Issue
Block a user