feat: 更新Dockerfile

main
chenzhirong 4 months ago
parent 137f7b7da4
commit 2d0aab921b

@ -3,17 +3,13 @@ FROM ubuntu:20.04
WORKDIR /root WORKDIR /root
COPY run.sh . COPY run.sh .
COPY . .
RUN apt update && apt install -y python3-pip git wget RUN apt update
RUN curl -LsSf https://mirrors.tuna.tsinghua.edu.cn/astral.sh/uv/install.sh | sh
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
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"] ENTRYPOINT ["/root/run.sh"]
RUN cd /root/SUSTechPOINTS && uv sync
EXPOSE 8081 EXPOSE 8081

@ -1,3 +1,3 @@
#!/usr/bin/env bash #!/usr/bin/env bash
cd /root/SUSTechPOINTS && uv sync && python3 ./main.py cd /root/SUSTechPOINTS && uv sync && uv run main.py

Loading…
Cancel
Save