flpsvs commited on
Commit
d7f856a
·
verified ·
1 Parent(s): 41f8b10

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -2
Dockerfile CHANGED
@@ -2,16 +2,19 @@ FROM ubuntu:22.04
2
 
3
  ENV DEBIAN_FRONTEND=noninteractive
4
 
5
- RUN apt-get update && apt-get install -y curl zstd
 
 
 
6
 
7
  RUN curl -fsSL https://ollama.com/install.sh | sh
8
 
9
  WORKDIR /app
10
 
 
11
  COPY start_ollama.sh /app/start_ollama.sh
12
  RUN chmod +x /app/start_ollama.sh
13
 
14
- # Porta que o Hugging Face monitora por padrão
15
  EXPOSE 7860
16
 
17
  ENTRYPOINT ["/bin/bash", "/app/start_ollama.sh"]
 
2
 
3
  ENV DEBIAN_FRONTEND=noninteractive
4
 
5
+ RUN apt-get update && apt-get install -y curl zstd python3 python3-pip
6
+
7
+ # Instala o Flask e a biblioteca requests para o proxy
8
+ RUN pip3 install flask requests
9
 
10
  RUN curl -fsSL https://ollama.com/install.sh | sh
11
 
12
  WORKDIR /app
13
 
14
+ COPY proxy.py /app/proxy.py
15
  COPY start_ollama.sh /app/start_ollama.sh
16
  RUN chmod +x /app/start_ollama.sh
17
 
 
18
  EXPOSE 7860
19
 
20
  ENTRYPOINT ["/bin/bash", "/app/start_ollama.sh"]