Skip to content

Commit 699cb1b

Browse files
committed
update wsgi
1 parent 19fffb2 commit 699cb1b

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

label_studio_ml/examples/segment_anything_2_image/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ RUN --mount=type=cache,target=${PIP_CACHE_DIR},sharing=locked \
4444
pip3 install -e .
4545
RUN cd checkpoints && ./download_ckpts.sh
4646

47-
WORKDIR /sam2
47+
WORKDIR /app
4848

4949
# install test requirements if needed
5050
COPY requirements-test.txt .
@@ -56,5 +56,6 @@ RUN --mount=type=cache,target=${PIP_CACHE_DIR},sharing=locked \
5656

5757
COPY . ./
5858

59+
WORKDIR ../sam2
5960

60-
CMD ["~/app/start.sh"]
61+
CMD ["../app/start.sh"]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/bash
22

33
# Execute the gunicorn command
4-
exec gunicorn --bind :${PORT:-9090} --workers ${WORKERS:-1} --threads ${THREADS:-4} --timeout 0 _wsgi:app
4+
exec gunicorn --bind :${PORT:-9090} --workers ${WORKERS:-1} --threads ${THREADS:-4} --timeout 0 app._wsgi:app

0 commit comments

Comments
 (0)