File size: 769 Bytes
570c8ab
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
30
31
32
33
FROM docker.io/library/python:3.8.9

RUN pip install pip==22.0.2

RUN mkdir app

WORKDIR /home/user/app

COPY requirements.txt requirements.txt

COPY packages.txt /root/packages.txt

RUN apt-get update && apt-get install -y git-lfs

RUN git lfs install

RUN apt-get update && xargs -r -a /root/packages.txt apt-get install -y

RUN pip install datasets huggingface-hub jurigged

RUN apt-get update && apt-get install -y ffmpeg libsm6 libxext6 cmake libgl1-mesa-glx vim

RUN pip install streamlit==1.10.0 "protobuf<4" "click<8.1" gradio==3.11.0

# app-specific stuff
RUN pip install -r /home/user/app/requirements.txt

RUN useradd -m -u 1000 user

COPY --chown=user ./app.py /home/user/app/app.py
COPY --chown=user ./assets /home/user/app/assets

# CMD jurigged -v app.py