Skip to content

Commit 63e91fd

Browse files
committed
Add dependencies for whole slide image processing and include opensdpc wheel
- Added openslide-bin, openslide-python, and loguru to pyproject.toml for whole slide image support. - Included the opensdpc wheel file in the wheels directory.
1 parent 868c089 commit 63e91fd

File tree

4 files changed

+138
-240
lines changed

4 files changed

+138
-240
lines changed

.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
!deploy/default.conf
1010
!label_studio/**
1111
!wheels/**
12+
!wheels/
1213
# Re-ignore pyc files and frontend
1314
label_studio/frontend
1415
label_studio/**/*.pyc

Dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,9 @@ RUN --mount=type=cache,target="/var/cache/apt",sharing=locked \
7676
apt-get install --no-install-recommends -y \
7777
build-essential git; \
7878
apt-get autoremove -y
79-
79+
8080
WORKDIR /label-studio
8181

82-
COPY wheels/ wheels/
8382

8483
ENV VENV_PATH="/label-studio/.venv"
8584
ENV PATH="$VENV_PATH/bin:$PATH"
@@ -94,15 +93,16 @@ ARG INCLUDE_DEV=false
9493

9594
# Install dependencies without dev packages
9695
RUN --mount=type=cache,target=$POETRY_CACHE_DIR,sharing=locked \
97-
poetry check --lock && \
96+
poetry check --lock && \
9897
if [ "$INCLUDE_DEV" = "true" ]; then \
9998
poetry install --no-root --extras uwsgi --with test; \
10099
else \
101100
poetry install --no-root --without test --extras uwsgi; \
102101
fi
103-
104-
# Install extra Python packages (from wheels and PyPI)
105-
RUN pip install wheels/*.whl openslide-bin openslide-python loguru
102+
103+
# Install extra Python packages (from wheels)
104+
COPY wheels/ wheels/
105+
RUN pip install wheels/*.whl
106106

107107
# Install LS
108108
COPY label_studio label_studio

0 commit comments

Comments
 (0)