diff --git a/Docker/Dockerfile b/Docker/Dockerfile index 639a909..047774a 100644 --- a/Docker/Dockerfile +++ b/Docker/Dockerfile @@ -3,17 +3,13 @@ FROM ubuntu:20.04 WORKDIR /root COPY run.sh . +COPY . . -RUN apt update && apt install -y python3-pip git wget - -RUN pip install --upgrade pip - -RUN git clone --depth 1 https://github.com/naurril/SUSTechPOINTS.git - -RUN cd SUSTechPOINTS && \ - wget https://github.com/naurril/SUSTechPOINTS/releases/download/0.1/deep_annotation_inference.h5 -P algos/models && \ - python3 -m pip install -r ./requirement.txt -i https://pypi.tuna.tsinghua.edu.cn/simple +RUN apt update +RUN curl -LsSf https://mirrors.tuna.tsinghua.edu.cn/astral.sh/uv/install.sh | sh +ENV UV_DEFAULT_INDEX=https://mirrors.aliyun.com/pypi/simple +ENV UV_PYTHON_INSTALL_MIRROR=https://registry.npmmirror.com/-/binary/python-build-standalone/ ENTRYPOINT ["/root/run.sh"] - +RUN cd /root/SUSTechPOINTS && uv sync EXPOSE 8081 diff --git a/Docker/run.sh b/Docker/run.sh index 32f1097..d05908d 100755 --- a/Docker/run.sh +++ b/Docker/run.sh @@ -1,3 +1,3 @@ #!/usr/bin/env bash -cd /root/SUSTechPOINTS && uv sync && python3 ./main.py +cd /root/SUSTechPOINTS && uv sync && uv run main.py