arjunkmoorthy commited on
Commit
3e85b22
·
verified ·
1 Parent(s): dbe22d2

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -3
Dockerfile CHANGED
@@ -1,11 +1,16 @@
1
  FROM python:3.9
2
 
 
3
  WORKDIR /app
4
- COPY requirements.txt .
5
 
 
 
 
 
6
  RUN pip install --upgrade pip
 
 
7
  RUN pip install -r requirements.txt
8
 
9
- COPY . .
10
-
11
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
1
  FROM python:3.9
2
 
3
+ # Set working dir
4
  WORKDIR /app
 
5
 
6
+ # Copy files
7
+ COPY . /app
8
+
9
+ # Install dependencies
10
  RUN pip install --upgrade pip
11
+ RUN pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
12
+ RUN pip install unsloth==0.0.19 unsloth_zoo==0.0.6
13
  RUN pip install -r requirements.txt
14
 
15
+ # Expose app
 
16
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]