File size: 612 Bytes
5e8fd8b
 
 
 
 
 
 
 
 
 
0d1cc7d
 
5e8fd8b
0d1cc7d
5e8fd8b
 
 
 
 
ac693fd
5e8fd8b
a777112
d2e898f
ac693fd
 
1bc57e9
bc74ed3
1bc57e9
ac693fd
a777112
5e8fd8b
ac693fd
5e8fd8b
 
ac693fd
5e8fd8b
 
 
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
33
34
35
36
37
38
# 
FROM python:3.11

# 
WORKDIR /code

# 
COPY ./requirements.txt /code/requirements.txt

# 
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt

# 
COPY ./start_service.sh /code/start_service.sh

# 
COPY ./app /code/app

#
# RUN apt-get update && apt-get install -y sudo

# RUN useradd -m docker && echo "docker:docker" | chpasswd && adduser docker sudo

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

#
EXPOSE 7860

# USER root

#
# RUN chmod a+x /code/start_service.sh

# # Run .sh file
ENTRYPOINT ["sh", "/code/start_service.sh"]

# 
# CMD ["fastapi", "run", "app/main.py", "--port", "80"]