Ryle69 commited on
Commit
fb9ccd6
·
verified ·
1 Parent(s): a07811e

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +0 -9
Dockerfile CHANGED
@@ -1,7 +1,5 @@
1
- # Use a standard Python environment
2
  FROM python:3.10-slim
3
 
4
- # Install system dependencies required for OpenCV, ChromaDB, and Ollama
5
  RUN apt-get update && apt-get install -y \
6
  curl \
7
  zstd \
@@ -9,24 +7,17 @@ RUN apt-get update && apt-get install -y \
9
  libglib2.0-0 \
10
  && rm -rf /var/lib/apt/lists/*
11
 
12
- # Install Ollama
13
  RUN curl -fsSL https://ollama.com/install.sh | sh
14
 
15
- # Set the working directory in the container
16
  WORKDIR /app
17
 
18
- # Copy your requirements and install Python packages
19
  COPY requirements.txt .
20
  RUN pip install --no-cache-dir -r requirements.txt
21
 
22
- # Copy the rest of your application code
23
  COPY . .
24
 
25
- # Make the startup script executable
26
  RUN chmod +x start.sh
27
 
28
- # Expose the port Gradio runs on
29
  EXPOSE 7860
30
 
31
- # Command to run when the container starts
32
  CMD ["./start.sh"]
 
 
1
  FROM python:3.10-slim
2
 
 
3
  RUN apt-get update && apt-get install -y \
4
  curl \
5
  zstd \
 
7
  libglib2.0-0 \
8
  && rm -rf /var/lib/apt/lists/*
9
 
 
10
  RUN curl -fsSL https://ollama.com/install.sh | sh
11
 
 
12
  WORKDIR /app
13
 
 
14
  COPY requirements.txt .
15
  RUN pip install --no-cache-dir -r requirements.txt
16
 
 
17
  COPY . .
18
 
 
19
  RUN chmod +x start.sh
20
 
 
21
  EXPOSE 7860
22
 
 
23
  CMD ["./start.sh"]