File size: 560 Bytes
609bd38
 
8768b5d
 
5eac769
8768b5d
 
10f8e74
8768b5d
 
 
 
 
 
 
 
 
5eac769
 
 
 
 
8768b5d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM nvidia/cuda

RUN useradd -m -u 1000 user
USER user

ENV HOME=/home/user \
    PYTHONUNBUFFERED=1 \
    PYTHONPATH=$HOME/app/cpython \
    GRADIO_ALLOW_FLAGGING=never \
    GRADIO_NUM_PORTS=1 \
    GRADIO_SERVER_NAME=0.0.0.0 \
    GRADIO_THEME=huggingface \
    SYSTEM=spaces

WORKDIR $HOME/app
COPY --chown=user . $HOME/app

RUN curl -sL "https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh" > "Miniconda3.sh"
CMD ["Miniconda3.sh", "-b"]
RUN source /home/miniconda3/bin/activate 
RUN conda env create -f /code/env.yml

CMD ["./start.sh"]