Spaces:
Runtime error
Runtime error
Commit
·
f4e287e
1
Parent(s):
eb77de0
build: changes python version for torch
Browse files- Dockerfile +2 -4
- pyproject.toml +1 -1
Dockerfile
CHANGED
|
@@ -1,6 +1,5 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
FROM ghcr.io/astral-sh/uv:python3.13-bookworm-slim
|
| 4 |
|
| 5 |
# Add user - this is the user that will run the app
|
| 6 |
# If you do not set user, the app will run as root (undesirable)
|
|
@@ -13,7 +12,6 @@ ENV HOME=/home/user \
|
|
| 13 |
|
| 14 |
ENV UVICORN_WS_PROTOCOL=websockets
|
| 15 |
|
| 16 |
-
|
| 17 |
# Set the working directory
|
| 18 |
WORKDIR $HOME/app
|
| 19 |
|
|
|
|
| 1 |
+
# Use Python 3.11 version of uv image
|
| 2 |
+
FROM ghcr.io/astral-sh/uv:python3.11-bookworm-slim
|
|
|
|
| 3 |
|
| 4 |
# Add user - this is the user that will run the app
|
| 5 |
# If you do not set user, the app will run as root (undesirable)
|
|
|
|
| 12 |
|
| 13 |
ENV UVICORN_WS_PROTOCOL=websockets
|
| 14 |
|
|
|
|
| 15 |
# Set the working directory
|
| 16 |
WORKDIR $HOME/app
|
| 17 |
|
pyproject.toml
CHANGED
|
@@ -6,7 +6,7 @@ authors = [
|
|
| 6 |
{name = "Anthony Chapman", email = "adc@thewebdev.us"}
|
| 7 |
]
|
| 8 |
readme = "README.md"
|
| 9 |
-
requires-python = ">=3.
|
| 10 |
dependencies = [
|
| 11 |
"jupyter",
|
| 12 |
"notebook",
|
|
|
|
| 6 |
{name = "Anthony Chapman", email = "adc@thewebdev.us"}
|
| 7 |
]
|
| 8 |
readme = "README.md"
|
| 9 |
+
requires-python = ">=3.11,<3.12"
|
| 10 |
dependencies = [
|
| 11 |
"jupyter",
|
| 12 |
"notebook",
|