File size: 668 Bytes
eadd7b4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
29
# This is a sample Dockefile that builds a runtime container and runs the sample Gradio app.
# Note, you must pass in the pretrained models when you run the container.

FROM nvidia/cuda:12.2.0-runtime-ubuntu22.04

WORKDIR /workspace

RUN apt-get update && \
    apt-get install -y \
        git \
        python3 \
        python-is-python3 \
        python3-pip \
        python3.10-venv \
        libgl1 \
        libgl1-mesa-glx \ 
        libglib2.0-0 \
    && rm -rf /var/lib/apt/lists/*

ADD requirements.txt .

RUN pip install -r requirements.txt

ADD . .

RUN chmod a+x docker-entrypoint.sh

ENV DEMO_PORT=12345
ENTRYPOINT [ "/workspace/docker-entrypoint.sh" ]