AIencoder commited on
Commit
a36a336
·
verified ·
1 Parent(s): aa349e2

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -10
Dockerfile CHANGED
@@ -1,17 +1,14 @@
1
- FROM python:3.11-slim
2
 
3
- RUN apt-get update && apt-get install -y curl ca-certificates build-essential && rm -rf /var/lib/apt/lists/*
4
 
5
- RUN pip install --no-cache-dir gradio requests huggingface_hub llama-cpp-python
6
 
7
- RUN useradd -m -u 1000 user
 
8
 
9
- USER user
10
- ENV HOME=/home/user
11
- WORKDIR $HOME/app
12
-
13
- COPY --chown=user:user app.py .
14
 
15
  EXPOSE 7860
16
 
17
- CMD ["python", "app.py"]
 
1
+ FROM ollama/ollama:latest
2
 
3
+ RUN apt-get update && apt-get install -y python3 python3-pip && rm -rf /var/lib/apt/lists/*
4
 
5
+ RUN pip3 install --no-cache-dir gradio requests --break-system-packages
6
 
7
+ COPY app.py /app.py
8
+ COPY entrypoint.sh /entrypoint.sh
9
 
10
+ RUN chmod +x /entrypoint.sh
 
 
 
 
11
 
12
  EXPOSE 7860
13
 
14
+ CMD ["/entrypoint.sh"]]