File size: 463 Bytes
5e8fd8b
 
 
 
 
 
 
 
 
 
0d1cc7d
 
 
 
5e8fd8b
 
0d1cc7d
5e8fd8b
 
 
 
 
0d1cc7d
5e8fd8b
1bc57e9
0d1cc7d
1bc57e9
5e8fd8b
 
 
 
1bc57e9
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
# 
FROM python:3.11

# 
WORKDIR /code

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

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

#
USER root

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

# 
COPY ./app /code/app

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

#
# EXPOSE 11434

#
RUN chmod +x /code/start_service.sh

# # Run .sh file
CMD ["/code/start_service.sh"]

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