File size: 678 Bytes
3dd227f
 
 
 
70cca5c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3dd227f
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
FROM python:3.9

WORKDIR /code

# Install segment-anything from GitHub
RUN pip install --no-cache-dir git+https://github.com/facebookresearch/segment-anything.git

# Install Transformers from Hugging Face GitHub
RUN pip install --no-cache-dir git+https://github.com/huggingface/transformers.git

# Install datasets
RUN pip install --no-cache-dir datasets

# Install monai
RUN pip install --no-cache-dir monai

# Install patchify
RUN pip install --no-cache-dir patchify

COPY ./requirements.txt /code/requirements.txt

RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt

COPY . .

EXPOSE 7860

CMD ["shiny", "run", "app.py", "--host", "0.0.0.0", "--port", "7860"]