Spaces:
Sleeping
Sleeping
fix the base image version
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
# FROM python:3.11-slim
|
| 2 |
# Use HuggingFace's pre-built GPU image (includes CUDA, PyTorch, Transformers)
|
| 3 |
# FROM huggingface/transformers-pytorch-amd-gpu:latest
|
| 4 |
-
FROM huggingface/transformers-pytorch-gpu:latest
|
| 5 |
|
| 6 |
|
| 7 |
WORKDIR /app
|
|
@@ -73,7 +73,7 @@ HEALTHCHECK --interval=30s --timeout=10s --start-period=40s --retries=3 \
|
|
| 73 |
CMD curl --fail http://localhost:8501/_stcore/health || exit 1
|
| 74 |
|
| 75 |
#temp developement commands
|
| 76 |
-
RUN python3 -c "import torch; print(torch.cuda.is_available(), torch.cuda.get_device_name(0))"
|
| 77 |
# RUN mkdir /app/conversations && chmod -R 777 conversations
|
| 78 |
# RUN mkdir /app/feedback && chmod -R 777 feedback
|
| 79 |
|
|
|
|
| 1 |
# FROM python:3.11-slim
|
| 2 |
# Use HuggingFace's pre-built GPU image (includes CUDA, PyTorch, Transformers)
|
| 3 |
# FROM huggingface/transformers-pytorch-amd-gpu:latest
|
| 4 |
+
FROM huggingface/transformers-pytorch-gpu:latest@sha256:4c7317881a534b22e18add49c925096fa902651fb0571c69f3cad58af3ea2c0f
|
| 5 |
|
| 6 |
|
| 7 |
WORKDIR /app
|
|
|
|
| 73 |
CMD curl --fail http://localhost:8501/_stcore/health || exit 1
|
| 74 |
|
| 75 |
#temp developement commands
|
| 76 |
+
RUN python3 -c "import torch; print(torch.cuda.is_available(), torch.cuda.get_device_name(0))" || true
|
| 77 |
# RUN mkdir /app/conversations && chmod -R 777 conversations
|
| 78 |
# RUN mkdir /app/feedback && chmod -R 777 feedback
|
| 79 |
|