Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +5 -2
Dockerfile
CHANGED
@@ -17,7 +17,6 @@ USER user
|
|
17 |
# Copy the entrypoint script before switching users
|
18 |
# COPY entrypoint.sh /usr/local/bin/entrypoint.sh
|
19 |
COPY requirements.txt $HOME/requirements.txt
|
20 |
-
COPY profile.png $HOME/profile.png
|
21 |
COPY entrypoint.sh $HOME/entrypoint.sh
|
22 |
|
23 |
# Ensure the user has access to the directory
|
@@ -27,4 +26,8 @@ RUN mkdir -p $HOME/.ollama && chown -R user:user $HOME/.ollama
|
|
27 |
# RUN apt-get update && apt-get install -y netcat
|
28 |
RUN pip3 install -r requirements.txt
|
29 |
|
30 |
-
ENTRYPOINT ["entrypoint.sh"]
|
|
|
|
|
|
|
|
|
|
17 |
# Copy the entrypoint script before switching users
|
18 |
# COPY entrypoint.sh /usr/local/bin/entrypoint.sh
|
19 |
COPY requirements.txt $HOME/requirements.txt
|
|
|
20 |
COPY entrypoint.sh $HOME/entrypoint.sh
|
21 |
|
22 |
# Ensure the user has access to the directory
|
|
|
26 |
# RUN apt-get update && apt-get install -y netcat
|
27 |
RUN pip3 install -r requirements.txt
|
28 |
|
29 |
+
ENTRYPOINT ["$HOME/entrypoint.sh"]
|
30 |
+
|
31 |
+
# Set permissions for the entrypoint script
|
32 |
+
RUN chmod +x $HOME/entrypoint.sh
|
33 |
+
COPY profile.png $HOME/profile.png
|