Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +7 -3
Dockerfile
CHANGED
|
@@ -1,20 +1,24 @@
|
|
|
|
|
| 1 |
FROM docker.io/ollama/ollama:latest
|
| 2 |
|
| 3 |
-
# Install Python, pip, and necessary
|
| 4 |
RUN apt-get update && \
|
| 5 |
apt-get install -y --no-install-recommends \
|
| 6 |
python3 \
|
| 7 |
python3-pip \
|
| 8 |
-
gunicorn \
|
| 9 |
libgl1-mesa-glx && \
|
| 10 |
apt-get clean && \
|
| 11 |
rm -rf /var/lib/apt/lists/*
|
| 12 |
|
|
|
|
| 13 |
WORKDIR /app
|
|
|
|
|
|
|
| 14 |
COPY requirements.txt .
|
| 15 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 16 |
|
|
|
|
| 17 |
COPY . .
|
| 18 |
|
| 19 |
-
#
|
| 20 |
ENTRYPOINT ["/bin/bash", "start.sh"]
|
|
|
|
| 1 |
+
# Use the official Ollama image as the base
|
| 2 |
FROM docker.io/ollama/ollama:latest
|
| 3 |
|
| 4 |
+
# Install Python, pip, and necessary system dependencies (opencv/gradio)
|
| 5 |
RUN apt-get update && \
|
| 6 |
apt-get install -y --no-install-recommends \
|
| 7 |
python3 \
|
| 8 |
python3-pip \
|
|
|
|
| 9 |
libgl1-mesa-glx && \
|
| 10 |
apt-get clean && \
|
| 11 |
rm -rf /var/lib/apt/lists/*
|
| 12 |
|
| 13 |
+
# Set the working directory
|
| 14 |
WORKDIR /app
|
| 15 |
+
|
| 16 |
+
# Copy and install Python dependencies (Gradio, Requests, Pillow, etc.)
|
| 17 |
COPY requirements.txt .
|
| 18 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 19 |
|
| 20 |
+
# Copy all application files
|
| 21 |
COPY . .
|
| 22 |
|
| 23 |
+
# Set the entry point to our startup script
|
| 24 |
ENTRYPOINT ["/bin/bash", "start.sh"]
|