Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- 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 |
-
|
| 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"]
|