Files
HSAP/Dockerfile
jiacheng.lin 20073eaa59 feat: 更新 Dockerfile 和 docker-compose.yml,使用清华镜像源,升级 CVAT 版本,优化环境配置
fix: 清理飞书配置占位符,增强错误处理,确保前端不暴露内部错误信息
feat: 在标注服务中添加上传错误处理,优化 CVAT 状态查询
feat: 更新 AnnotationPage 以显示上传状态和错误信息,增强用户体验
feat: 登录页面添加重定向功能,优化用户登录流程
refactor: 删除 tsconfig.tsbuildinfo 文件,清理不必要的构建信息
2026-07-15 09:18:53 +08:00

42 lines
1.2 KiB
Docker
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# syntax=docker/dockerfile:1
# ── HSAP UILabel Studio 工程 (apps/hsap-platform) ──
# 构建前在宿主机执行: bash scripts/build_hsap_ls_ui.sh
# 或 CI 将 dist 拷入 platform/ui-hsap/dist
# ── Platform API ──
FROM python:3.11-slim AS platform
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
PYTHONPATH=/data/hsap/platform
ARG DEBIAN_MIRROR=mirrors.tuna.tsinghua.edu.cn
RUN sed -i "s|deb.debian.org|${DEBIAN_MIRROR}|g" /etc/apt/sources.list.d/debian.sources 2>/dev/null || \
sed -i "s|deb.debian.org|${DEBIAN_MIRROR}|g" /etc/apt/sources.list && \
apt-get update && \
apt-get upgrade -y && \
apt-get install -y --no-install-recommends \
libpq5 curl bash \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /data/hsap
ARG PIP_INDEX_URL=https://pypi.tuna.tsinghua.edu.cn/simple
COPY requirements.txt ./
RUN pip install --no-cache-dir -i "${PIP_INDEX_URL}" -r requirements.txt
COPY platform/ ./platform/
COPY scripts/ ./scripts/
COPY datasets/ ./datasets/
COPY as.py workflow.registry.yaml ./
COPY algorithms/ ./algorithms/
COPY docker/entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
EXPOSE 8787
ENTRYPOINT ["/entrypoint.sh"]
CMD ["python", "-m", "as_platform.api.server", "--host", "0.0.0.0", "--port", "8787"]