Adityashriv commited on
Commit
f94fabe
·
verified ·
1 Parent(s): c2e4280

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +27 -28
Dockerfile CHANGED
@@ -1,29 +1,28 @@
1
- FROM python:3.11.4-slim-buster
2
-
3
-
4
-
5
- # Install curl and Ollama
6
- RUN apt-get update && apt-get install -y curl && \
7
- curl -fsSL https://ollama.ai/install.sh | sh && \
8
- apt-get clean && rm -rf /var/lib/apt/lists/*
9
-
10
- # Set up user and environment
11
- RUN useradd -m -u 1000 user
12
- USER user
13
- ENV HOME=/home/user \
14
- PATH="/home/user/.local/bin:$PATH"
15
-
16
- WORKDIR $HOME/app
17
-
18
- COPY --chown=user requirements.txt .
19
- RUN pip install --no-cache-dir --upgrade -r requirements.txt
20
- COPY . .
21
-
22
-
23
- COPY --chown=user . .
24
-
25
- # Make the start script executable
26
- RUN chmod +x start.sh
27
- EXPOSE 7860
28
-
29
  CMD ["./start.sh"]
 
1
+ FROM python:3.11-slim-bookworm
2
+
3
+
4
+ # Install curl and Ollama
5
+ RUN apt-get update && apt-get install -y curl && \
6
+ curl -fsSL https://ollama.ai/install.sh | sh && \
7
+ apt-get clean && rm -rf /var/lib/apt/lists/*
8
+
9
+ # Set up user and environment
10
+ RUN useradd -m -u 1000 user
11
+ USER user
12
+ ENV HOME=/home/user \
13
+ PATH="/home/user/.local/bin:$PATH"
14
+
15
+ WORKDIR $HOME/app
16
+
17
+ COPY --chown=user requirements.txt .
18
+ RUN pip install --no-cache-dir --upgrade -r requirements.txt
19
+ COPY . .
20
+
21
+
22
+ COPY --chown=user . .
23
+
24
+ # Make the start script executable
25
+ RUN chmod +x start.sh
26
+ EXPOSE 7860
27
+
 
28
  CMD ["./start.sh"]