File size: 415 Bytes
804b56d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
26
27
28
29
30
31
32
FROM ubuntu:22.04

ENV DEBIAN_FRONTEND=noninteractive


RUN apt-get update && apt-get install -y \
    curl \
    git \
    python3 \
    python3-pip \
    zstd \
 && rm -rf /var/lib/apt/lists/*

# ollama
RUN curl -fsSL https://ollama.com/install.sh | sh

WORKDIR /app

COPY . .

RUN pip3 install --no-cache-dir -r requirements.txt

EXPOSE 7860





COPY start.sh /start.sh
RUN chmod +x /start.sh

CMD ["/start.sh"]