Yakova commited on
Commit
d89bf1c
·
1 Parent(s): bd57d1d

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -20
Dockerfile CHANGED
@@ -1,28 +1,10 @@
1
  # Builder stage
2
- FROM python:3.9.0 as builder
3
 
4
- RUN useradd -ms /bin/bash admin
5
 
6
- WORKDIR /srv
7
- RUN chown -R admin:admin /srv
8
- RUN chmod 755 /srv
9
-
10
-
11
-
12
- # Install dependencies and Python packages
13
- RUN apt-get update && apt-get install -y git ffmpeg aria2 \
14
- && rm -rf /var/lib/apt/lists/*
15
-
16
- COPY requirements.txt .
17
- RUN pip install --no-cache-dir -r requirements.txt
18
-
19
- # Copy the application code
20
- USER admin
21
-
22
- COPY --chown=admin . /srv
23
 
24
  # Command to run the application
25
- CMD export PYTHONPATH="${PYTHONPATH}:./src" && python3 ./src/app.py
26
 
27
  # Expose the server port
28
  EXPOSE 7860
 
1
  # Builder stage
2
+ FROM ollama:latest
3
 
 
4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
 
6
  # Command to run the application
7
+ CMD ollama serve & sleep 10s && ollama pull zephyr
8
 
9
  # Expose the server port
10
  EXPOSE 7860