object-detection / Dockerfile
mingyang91's picture
clean requirements.txt
2b27506 verified
raw
history blame
442 Bytes
FROM python:3.11-bookworm
ARG HF_TOKEN
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 HF_TOKEN=$HF_TOKEN python yolo_fire.py
ENTRYPOINT ["streamlit", "run", "demo.py"]