Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +3 -3
Dockerfile
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
FROM python:3.
|
| 2 |
|
| 3 |
# Prevents Python from writing .pyc files and ensures logs are shown immediately
|
| 4 |
ENV PYTHONDONTWRITEBYTECODE=1 \
|
|
@@ -30,12 +30,12 @@ RUN pip install --no-cache-dir -r /app/requirements.txt
|
|
| 30 |
COPY . /app
|
| 31 |
|
| 32 |
# Create necessary directories at build/run time
|
| 33 |
-
RUN mkdir -p /
|
| 34 |
/app/.cache \
|
| 35 |
/app/.cache/huggingface \
|
| 36 |
/app/.cache/huggingface/hub \
|
| 37 |
/app/.cache/huggingface/transformers \
|
| 38 |
-
&& chmod -R 777 /app/.cache /
|
| 39 |
|
| 40 |
# Expose the port used by Hugging Face Spaces
|
| 41 |
EXPOSE 7860
|
|
|
|
| 1 |
+
FROM python:3.11-slim
|
| 2 |
|
| 3 |
# Prevents Python from writing .pyc files and ensures logs are shown immediately
|
| 4 |
ENV PYTHONDONTWRITEBYTECODE=1 \
|
|
|
|
| 30 |
COPY . /app
|
| 31 |
|
| 32 |
# Create necessary directories at build/run time
|
| 33 |
+
RUN mkdir -p /data/uploads /data/faiss_indices \
|
| 34 |
/app/.cache \
|
| 35 |
/app/.cache/huggingface \
|
| 36 |
/app/.cache/huggingface/hub \
|
| 37 |
/app/.cache/huggingface/transformers \
|
| 38 |
+
&& chmod -R 777 /app/.cache /data/uploads /data/faiss_indices
|
| 39 |
|
| 40 |
# Expose the port used by Hugging Face Spaces
|
| 41 |
EXPOSE 7860
|