Update Dockerfile
Browse files- Dockerfile +7 -3
Dockerfile
CHANGED
|
@@ -9,7 +9,7 @@ RUN apt-get update && apt-get install -y curl && \
|
|
| 9 |
curl -fsSL https://ollama.com/install.sh | sh && \
|
| 10 |
apt-get clean && rm -rf /var/lib/apt/lists/*
|
| 11 |
|
| 12 |
-
# Ensure Ollama is in the $PATH
|
| 13 |
ENV PATH="/root/.local/bin:$PATH"
|
| 14 |
|
| 15 |
# Copy the application files
|
|
@@ -18,8 +18,12 @@ COPY . /app
|
|
| 18 |
# Install Python dependencies
|
| 19 |
RUN pip install --no-cache-dir flask gunicorn
|
| 20 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
# Expose the required port
|
| 22 |
EXPOSE 7860
|
| 23 |
|
| 24 |
-
#
|
| 25 |
-
CMD
|
|
|
|
| 9 |
curl -fsSL https://ollama.com/install.sh | sh && \
|
| 10 |
apt-get clean && rm -rf /var/lib/apt/lists/*
|
| 11 |
|
| 12 |
+
# Ensure Ollama is in the $PATH
|
| 13 |
ENV PATH="/root/.local/bin:$PATH"
|
| 14 |
|
| 15 |
# Copy the application files
|
|
|
|
| 18 |
# Install Python dependencies
|
| 19 |
RUN pip install --no-cache-dir flask gunicorn
|
| 20 |
|
| 21 |
+
# Add start script
|
| 22 |
+
COPY start.sh /app/start.sh
|
| 23 |
+
RUN chmod +x /app/start.sh
|
| 24 |
+
|
| 25 |
# Expose the required port
|
| 26 |
EXPOSE 7860
|
| 27 |
|
| 28 |
+
# Use the start script to launch the app
|
| 29 |
+
CMD ["/app/start.sh"]
|