File size: 510 Bytes
2c9ef08
5e5763a
 
 
 
 
 
 
 
 
 
f977726
 
50e648a
 
f977726
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
FROM python:3.11-bookworm
RUN useradd -m -u 1000 user
USER user
# Set home to the user's home directory
ENV HOME=/home/user \
	PATH=/home/user/.local/bin:$PATH
# Set the working directory to the user's home directory
WORKDIR $HOME/app
COPY . $HOME/app
RUN mkdir $HOME/.cache
RUN chown -R user $HOME/.cache

RUN pip install -r requirements.txt
RUN --mount=type=secret,id=HF_TOKEN,mode=0444,required=true \
    HF_TOKEN=$(cat /run/secrets/HF_TOKEN) python yolo_fire.py
ENTRYPOINT ["streamlit", "run", "demo.py"]