Skip to content

Commit 797b293

Browse files
committed
Reference remote code to avoid duplicating build steps
1 parent 512e9a1 commit 797b293

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,17 @@ RUN pip3 install --upgrade pip \
3636
&& mim install mmdet==3.3.0 \
3737
&& pip install git+https://github.com/onuralpszr/mmyolo.git
3838

39-
# RUN git clone --recursive https://github.com/tim-win/YOLO-World /yolo/
40-
COPY . /yolo
41-
WORKDIR /yolo
39+
RUN git clone --recursive https://github.com/tim-win/YOLO-World /yolo/
40+
#COPY . /yolo
41+
#WORKDIR /yolo
4242

4343
RUN pip3 install -e .[demo]
4444

4545
RUN pip3 install onnx onnxsim
4646
# RUN cd third_party/ && rm -rf ./mmyolo && git clone https://github.com/onuralpszr/mmyolo.git .
4747

48-
RUN chmod a+rwx /weights/
48+
RUN mkdir /weights/
4949
RUN chmod a+rwx /yolo/configs/*/*
5050

5151
CMD [ "python3", "demo/gradio_demo.py", "", ""]
52-
# CMD ["configs/pretrain/$MODEL", "weights/$WEIGHT"]
52+
# CMD ["configs/pretrain/$MODEL", "weights/$WEIGHT"]

0 commit comments

Comments
 (0)