File size: 565 Bytes
72fe0e3
4242e42
e4c1e59
70160e7
2980f36
2a0312c
6b78a54
4242e42
a3df185
f31f0ad
4242e42
6878ab3
41550fb
38bc588
89e4920
 
5786ce2
61e9fe9
4c08ecb
61e9fe9
5786ce2
5a8893f
4242e42
 
8655c01
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 swipl

RUN apt-get update
RUN apt-get install -y gcc python3-all python3-dev python3-venv
RUN apt-get install -y curl
RUN curl -fsSL https://ollama.com/install.sh | sh

WORKDIR /app
COPY . /app
ENV HOME /app

RUN python3 -m venv /app/env
ENV PATH="/app/env/bin:$PATH"
RUN pip install --no-cache-dir --upgrade pip
RUN pip install --no-cache-dir --upgrade -r requirements.txt

ENV OLLAMA_MODELS="/app/ollama"
RUN mkdir /app/ollama
RUN touch tmp.pl
RUN chmod 777 -R /app
RUN chmod +x run.sh

EXPOSE 7860
ENV GRADIO_SERVER_NAME="0.0.0.0"
ENTRYPOINT ["/app/run.sh"]