ruslanmv commited on
Commit
9f59101
·
1 Parent(s): b1861cd

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +0 -24
Dockerfile CHANGED
@@ -37,30 +37,6 @@ COPY . .
37
 
38
  # Set proper permissions for the translations directory
39
  RUN chmod -R 777 translations
40
-
41
- # Create the Ollama user
42
- RUN useradd -r -s /bin/false -m -d /usr/share/ollama ollama
43
-
44
- # Create the service file
45
- RUN echo "[Unit]\n\
46
- Description=Ollama Service\n\
47
- After=network-online.target\n\n\
48
- [Service]\n\
49
- ExecStart=/usr/bin/ollama serve\n\
50
- User=ollama\n\
51
- Group=ollama\n\
52
- Restart=always\n\
53
- RestartSec=3\n\n\
54
- [Install]\n\
55
- WantedBy=default.target" > /etc/systemd/system/ollama.service
56
-
57
- # Enable the service
58
- RUN systemctl enable ollama
59
-
60
-
61
-
62
- # Define the entrypoint to use tini and the custom script
63
- ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
64
  # Download the required model
65
  RUN ollama pull llama3
66
  # Define the command to run the application
 
37
 
38
  # Set proper permissions for the translations directory
39
  RUN chmod -R 777 translations
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
40
  # Download the required model
41
  RUN ollama pull llama3
42
  # Define the command to run the application