File size: 782 Bytes
1e607ad
672a60f
e19dbf9
7efd500
e19dbf9
 
 
 
 
7efd500
e19dbf9
886df6b
47efdeb
886df6b
00c524f
7efd500
e19dbf9
47efdeb
 
e19dbf9
a3095e1
5e6ba67
ca6ca22
a3095e1
 
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
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"]