Spaces:
Runtime error
Runtime error
russkiyximik commited on
Commit ·
722d4e5
1
Parent(s): 0259c0c
back :(
Browse files- Dockerfile +3 -3
Dockerfile
CHANGED
|
@@ -19,12 +19,12 @@ COPY entrypoint.sh /usr/local/bin/entrypoint.sh
|
|
| 19 |
# Set permissions for the entrypoint script
|
| 20 |
RUN chmod +x /usr/local/bin/entrypoint.sh
|
| 21 |
|
| 22 |
-
# Switch to the non-root user
|
| 23 |
-
USER ollama-user
|
| 24 |
-
|
| 25 |
# Install Python and pip
|
| 26 |
RUN apt-get update && apt-get install -y python3 python3-pip
|
| 27 |
|
|
|
|
|
|
|
|
|
|
| 28 |
# Copy requirements and install dependencies
|
| 29 |
COPY requirements.txt $HOME/requirements.txt
|
| 30 |
RUN pip3 install --no-cache-dir --break-system-packages -r $HOME/requirements.txt
|
|
|
|
| 19 |
# Set permissions for the entrypoint script
|
| 20 |
RUN chmod +x /usr/local/bin/entrypoint.sh
|
| 21 |
|
|
|
|
|
|
|
|
|
|
| 22 |
# Install Python and pip
|
| 23 |
RUN apt-get update && apt-get install -y python3 python3-pip
|
| 24 |
|
| 25 |
+
# Switch to the non-root user
|
| 26 |
+
USER ollama-user
|
| 27 |
+
|
| 28 |
# Copy requirements and install dependencies
|
| 29 |
COPY requirements.txt $HOME/requirements.txt
|
| 30 |
RUN pip3 install --no-cache-dir --break-system-packages -r $HOME/requirements.txt
|