Files
rustfs-s3-toolkit/docker/Dockerfile
hotwa 5e71d576a3
Some checks failed
Build and Push to ACR / docker (push) Failing after 5m45s
add proxy to build images
2025-09-30 16:22:35 +08:00

24 lines
499 B
Docker

# syntax=docker/dockerfile:1
FROM debian:12-slim
ARG HTTP_PROXY
ARG HTTPS_PROXY
ARG NO_PROXY
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 git
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"]