Spaces:
Paused
Paused
Echo-ai
commited on
Update Dockerfile
Browse files- Dockerfile +9 -6
Dockerfile
CHANGED
|
@@ -11,12 +11,15 @@ USER user
|
|
| 11 |
ENV HOME=/home/user PATH="/home/user/.local/bin:$PATH"
|
| 12 |
WORKDIR $HOME/app
|
| 13 |
|
| 14 |
-
# Copy
|
| 15 |
-
COPY --chown=user
|
| 16 |
-
RUN
|
|
|
|
|
|
|
|
|
|
| 17 |
|
| 18 |
-
#
|
| 19 |
-
|
| 20 |
|
| 21 |
-
# Start Ollama
|
| 22 |
CMD ["./start.sh"]
|
|
|
|
| 11 |
ENV HOME=/home/user PATH="/home/user/.local/bin:$PATH"
|
| 12 |
WORKDIR $HOME/app
|
| 13 |
|
| 14 |
+
# Copy and install Python dependencies
|
| 15 |
+
COPY --chown=user requirements.txt .
|
| 16 |
+
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
| 17 |
+
|
| 18 |
+
# Copy the rest of the app
|
| 19 |
+
COPY --chown=user . .
|
| 20 |
|
| 21 |
+
# Make the start script executable
|
| 22 |
+
RUN chmod +x start.sh
|
| 23 |
|
| 24 |
+
# Start Ollama and the app
|
| 25 |
CMD ["./start.sh"]
|