Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +8 -8
Dockerfile
CHANGED
|
@@ -1,14 +1,14 @@
|
|
| 1 |
FROM python:3.10-slim
|
| 2 |
|
| 3 |
-
# Set working directory
|
| 4 |
-
WORKDIR /app
|
| 5 |
-
|
| 6 |
# Install dependencies
|
| 7 |
-
|
| 8 |
-
RUN pip install --no-cache-dir -r requirements.txt
|
| 9 |
|
| 10 |
-
#
|
| 11 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
|
| 13 |
-
#
|
| 14 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
| 1 |
FROM python:3.10-slim
|
| 2 |
|
|
|
|
|
|
|
|
|
|
| 3 |
# Install dependencies
|
| 4 |
+
RUN pip install --no-cache-dir fastapi uvicorn transformers
|
|
|
|
| 5 |
|
| 6 |
+
# Create writable cache dir
|
| 7 |
+
RUN mkdir -p /data/cache
|
| 8 |
+
|
| 9 |
+
# Copy app
|
| 10 |
+
COPY app.py /app/app.py
|
| 11 |
+
WORKDIR /app
|
| 12 |
|
| 13 |
+
# Run
|
| 14 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|