Spaces:
Running
Running
fix python version
Browse files- Dockerfile +4 -1
Dockerfile
CHANGED
|
@@ -1,7 +1,10 @@
|
|
| 1 |
# read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
|
| 2 |
# you will also find guides on how best to write your Dockerfile
|
| 3 |
|
| 4 |
-
FROM python:3.12
|
|
|
|
|
|
|
|
|
|
| 5 |
|
| 6 |
# Required for Hugging Face Spaces Dev Mode functionality
|
| 7 |
RUN useradd -m -u 1000 user
|
|
|
|
| 1 |
# read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
|
| 2 |
# you will also find guides on how best to write your Dockerfile
|
| 3 |
|
| 4 |
+
FROM python:3.12-slim
|
| 5 |
+
|
| 6 |
+
# Update system packages to reduce vulnerabilities
|
| 7 |
+
RUN apt-get update && apt-get upgrade -y && apt-get clean && rm -rf /var/lib/apt/lists/*
|
| 8 |
|
| 9 |
# Required for Hugging Face Spaces Dev Mode functionality
|
| 10 |
RUN useradd -m -u 1000 user
|