KoKoDanio commited on
Commit
38fe66f
·
1 Parent(s): 2bf1180
Files changed (1) hide show
  1. DockerFile +6 -5
DockerFile CHANGED
@@ -1,6 +1,11 @@
1
  # Use a base image with Python
2
  FROM python:3.10-slim
3
 
 
 
 
 
 
4
  # Set the working directory in the container
5
  WORKDIR /app
6
 
@@ -8,15 +13,11 @@ WORKDIR /app
8
  COPY requirements.txt .
9
  RUN pip install --no-cache-dir -r requirements.txt
10
 
11
- # Install the correct unsloth version
12
- # This command is crucial for proper GPU setup
13
- RUN pip install "unsloth[cu121-ampere-gpu-smashed] @ git+https://github.com/unslothai/unsloth.git"
14
-
15
  # Copy the rest of your application code
16
  COPY . .
17
 
18
  # Expose the port your application will run on
19
- EXPOSE 8000
20
 
21
  # Command to run your application using Uvicorn
22
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
1
  # Use a base image with Python
2
  FROM python:3.10-slim
3
 
4
+ # Install git and other build tools
5
+ # The specific command depends on the base image's package manager.
6
+ # For Debian/Ubuntu-based images like python:3.10-slim, it's apt-get.
7
+ RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
8
+
9
  # Set the working directory in the container
10
  WORKDIR /app
11
 
 
13
  COPY requirements.txt .
14
  RUN pip install --no-cache-dir -r requirements.txt
15
 
 
 
 
 
16
  # Copy the rest of your application code
17
  COPY . .
18
 
19
  # Expose the port your application will run on
20
+ EXPOSE 7860
21
 
22
  # Command to run your application using Uvicorn
23
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]