Spaces:
Build error
Build error
Update Dockerfile
Browse files- Dockerfile +8 -3
Dockerfile
CHANGED
|
@@ -1,12 +1,17 @@
|
|
| 1 |
# ☢️ NUCLEAR OPTION: Use the Official Pre-Built Image
|
| 2 |
-
# This image already has the AI engine (llama-cpp) compiled and installed.
|
| 3 |
FROM ghcr.io/abetlen/llama-cpp-python:latest
|
| 4 |
|
| 5 |
# 1. Switch to Root to install our extra tools
|
| 6 |
USER root
|
| 7 |
|
| 8 |
-
# 2. Install
|
| 9 |
-
RUN pip install --no-cache-dir
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
|
| 11 |
# 3. Setup the User (Strict Requirement for Hugging Face Spaces)
|
| 12 |
RUN useradd -m -u 1000 user
|
|
|
|
| 1 |
# ☢️ NUCLEAR OPTION: Use the Official Pre-Built Image
|
|
|
|
| 2 |
FROM ghcr.io/abetlen/llama-cpp-python:latest
|
| 3 |
|
| 4 |
# 1. Switch to Root to install our extra tools
|
| 5 |
USER root
|
| 6 |
|
| 7 |
+
# 2. Install Dependencies (Added python-telegram-bot)
|
| 8 |
+
RUN pip install --no-cache-dir \
|
| 9 |
+
fastapi \
|
| 10 |
+
uvicorn \
|
| 11 |
+
huggingface_hub \
|
| 12 |
+
python-dotenv \
|
| 13 |
+
pydantic \
|
| 14 |
+
python-telegram-bot
|
| 15 |
|
| 16 |
# 3. Setup the User (Strict Requirement for Hugging Face Spaces)
|
| 17 |
RUN useradd -m -u 1000 user
|