Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +5 -1
Dockerfile
CHANGED
|
@@ -1,8 +1,11 @@
|
|
| 1 |
-
FROM python:3.
|
| 2 |
|
| 3 |
# Set the working directory
|
| 4 |
WORKDIR /app
|
| 5 |
|
|
|
|
|
|
|
|
|
|
| 6 |
# Install dependencies
|
| 7 |
COPY requirements.txt .
|
| 8 |
RUN pip install --no-cache-dir -r requirements.txt
|
|
@@ -15,3 +18,4 @@ EXPOSE 8000
|
|
| 15 |
|
| 16 |
# Run FastAPI when the container starts
|
| 17 |
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
|
|
|
|
|
|
| 1 |
+
FROM python:3.9
|
| 2 |
|
| 3 |
# Set the working directory
|
| 4 |
WORKDIR /app
|
| 5 |
|
| 6 |
+
# Set writable cache for Numba to prevent caching errors
|
| 7 |
+
ENV NUMBA_CACHE_DIR=/tmp/numba_cache/
|
| 8 |
+
|
| 9 |
# Install dependencies
|
| 10 |
COPY requirements.txt .
|
| 11 |
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
| 18 |
|
| 19 |
# Run FastAPI when the container starts
|
| 20 |
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
|
| 21 |
+
|