Vdphacker commited on
Commit
fa62d98
·
verified ·
1 Parent(s): 61b2eb7

Delete dockerfile

Browse files
Files changed (1) hide show
  1. dockerfile +0 -24
dockerfile DELETED
@@ -1,24 +0,0 @@
1
- FROM python:3.11-slim
2
-
3
- WORKDIR /app
4
-
5
- # Installer les dépendances système
6
- RUN apt-get update && apt-get install -y --no-install-recommends \
7
- build-essential \
8
- curl \
9
- && rm -rf /var/lib/apt/lists/*
10
-
11
- # Copier les fichiers
12
- COPY . .
13
-
14
- # Installer les dépendances Python SANS laisser Hugging Face imposer Gradio
15
- RUN pip install --no-cache-dir -r requirements_space.txt
16
-
17
- # Télécharger les poids du modèle à l’avance (optionnel mais utile)
18
- RUN python -c "from transformers import AutoTokenizer, AutoModelForCausalLM; \
19
- AutoTokenizer.from_pretrained('mistralai/Mistral-7B-Instruct-v0.3'); \
20
- AutoModelForCausalLM.from_pretrained('mistralai/Mistral-7B-Instruct-v0.3', \
21
- load_in_4bit=True, device_map='auto', trust_remote_code=True)" || true
22
-
23
- # Lancer l’appli
24
- CMD ["python", "app.py"]