Skip to content

Commit

Permalink
Forgot to copy yolo model in the last build stage
Browse files Browse the repository at this point in the history
  • Loading branch information
HeavenVolkoff committed Dec 5, 2023
1 parent d5b8c8c commit 5ceff1a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,8 @@ COPY --from=layer-99-protoc "${PREFIX}/licenses/." "${OUT}/licenses"
COPY --from=layer-99-pdfium "${OUT}/." "$OUT"
COPY --from=layer-99-pdfium "${PREFIX}/licenses/." "${OUT}/licenses"

COPY --from=layer-99-yolo "${OUT}/." "$OUT"

COPY --from=layer-99-onnx "${OUT}/." "$OUT"
COPY --from=layer-99-onnx "${PREFIX}/srv/." "${OUT}/srv"
COPY --from=layer-99-onnx "${PREFIX}/licenses/." "${OUT}/licenses"
Expand Down
3 changes: 2 additions & 1 deletion stages/99-yolov8.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@ case "$TARGET" in
;;
esac

mkdir -p "${OUT}/models"
mkdir -p "$OUT"/{models,licenses}
curl -LSsO "${OUT}/models/yolov8s.onnx" "https://github.com/spacedriveapp/native-deps/releases/download/${_tag}/${_name}"
curl -LSsO "https://raw.githubusercontent.com/ultralytics/assets/main/LICENSE" "${OUT}/licenses/yolov8s.LICENSE"

0 comments on commit 5ceff1a

Please sign in to comment.