gfjiogopdfgdfs commited on
Commit
66b3718
·
verified ·
1 Parent(s): c1aa712

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -8
Dockerfile CHANGED
@@ -1,19 +1,18 @@
1
  # Use an official CUDA runtime with Ubuntu as a parent image
2
  FROM nvidia/cuda:12.2.0-devel-ubuntu22.04
3
 
4
- # Install Python and pip
5
  RUN apt-get update && apt-get install -y \
6
  python3.11 \
7
  python3-pip \
 
8
  && rm -rf /var/lib/apt/lists/*
9
- RUN apt-get update && apt-get install -y git
10
- RUN git clone https://github.com/theroyallab/tabbyAPI
11
  # Set the working directory in the container
12
  WORKDIR /usr/src/app
13
- RUN git clone https://github.com/theroyallab/tabbyAPI /usr/src/app
14
 
15
- # Get requirements
16
- COPY requirements.txt requirements.txt
17
 
18
  # Install torch with CUDA support and exllamav2
19
  RUN pip install torch --extra-index-url https://download.pytorch.org/whl/cu121
@@ -23,10 +22,11 @@ RUN pip install exllamav2
23
  RUN pip install --no-cache-dir -r requirements.txt
24
 
25
  # Copy the current directory contents into the container at /usr/src/app
26
- COPY . /usr/src/app/
 
27
 
28
  # Make port 5000 available to the world outside this container
29
  EXPOSE 5000
30
 
31
  # Run main.py when the container launches
32
- CMD ["python3", "main.py"]
 
1
  # Use an official CUDA runtime with Ubuntu as a parent image
2
  FROM nvidia/cuda:12.2.0-devel-ubuntu22.04
3
 
4
+ # Install Python, pip, and git
5
  RUN apt-get update && apt-get install -y \
6
  python3.11 \
7
  python3-pip \
8
+ git \
9
  && rm -rf /var/lib/apt/lists/*
10
+
 
11
  # Set the working directory in the container
12
  WORKDIR /usr/src/app
 
13
 
14
+ # Clone the repository into the current directory
15
+ RUN git clone https://github.com/theroyallab/tabbyAPI .
16
 
17
  # Install torch with CUDA support and exllamav2
18
  RUN pip install torch --extra-index-url https://download.pytorch.org/whl/cu121
 
22
  RUN pip install --no-cache-dir -r requirements.txt
23
 
24
  # Copy the current directory contents into the container at /usr/src/app
25
+ # Note: This might be redundant if you're cloning everything you need
26
+ # COPY . /usr/src/app/
27
 
28
  # Make port 5000 available to the world outside this container
29
  EXPOSE 5000
30
 
31
  # Run main.py when the container launches
32
+ CMD ["python3", "main.py"]