Spaces:
Runtime error
Runtime error
| FROM python:3.10 | |
| RUN apt update && apt install build-essential -y && apt install manpages-dev -y && apt update | |
| RUN apt install git-lfs && apt install curl -y | |
| RUN git config --global lfs.largefilewarning false | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV HOME=/home/user \ | |
| PATH=/home/user/.local/bin:$PATH | |
| WORKDIR $HOME | |
| USER root | |
| RUN git clone -b main --single-branch https://github.com/szymonrucinski/krakowiak-chat src | |
| WORKDIR /user/src | |
| RUN ls | |
| RUN chmod 777 -R $HOME | |
| USER user | |
| WORKDIR $HOME/src | |
| RUN pip install --no-cache-dir --upgrade -r /home/user/src/requirements.txt | |
| EXPOSE 7860 | |
| # Set the FILENAME environment variable | |
| ENV FILENAME="krakowiak-7B-v2-gguf.Q8_0.bin" | |
| ENV REPO_ID="szymonrucinski/Krakowiak-7B-v2-GGUF" | |
| # Command to run the application | |
| CMD ["python", "-u", "app.py"] |