GreenWizard2015/FranNet
0
1FROM python:3.102 3# Some stuff to make it work on Hugging Face4RUN apt-get update && apt-get install -y libsm6 libxext6 cmake libgl1-mesa-glx5 6# Set up environment7COPY --link --chown=1000 ./ /home/user/app8WORKDIR /home/user/app9RUN useradd -m -u 1000 user && cd /home/user/app10USER user11ENV PATH=/home/user/.local/bin:$PATH12 13# Clone the repo and install the requirements14#ADD "https://api.github.com/repos/GreenWizard2015/FranNet/git/ref/heads/main" skipcache15RUN git clone https://github.com/GreenWizard2015/FranNet/ && \16 cp -r FranNet/huggingface/* . && rm -rf FranNet/huggingface && \17 cp -r FranNet/* . && \18 rm -rf FranNet19RUN pip install --no-cache-dir --upgrade pip20RUN pip install --no-cache-dir -r requirements-huggingface.txt21 22CMD ["python", "app.py", "--host", "0.0.0.0", "--port", "7860"]