Rathalos commited on
Commit
f2aec00
·
verified ·
1 Parent(s): 79a1bd5
Files changed (1) hide show
  1. Dockerfile +7 -2
Dockerfile CHANGED
@@ -1,12 +1,17 @@
1
  # Utilizza l'immagine base ufficiale di Hugging Face per PyTorch con supporto GPU
2
  FROM huggingface/transformers-pytorch-gpu:latest
3
 
4
- # Installa le dipendenze di sistema
5
  RUN apt-get update && apt-get install -y \
 
 
6
  git \
7
  wget \
8
  && rm -rf /var/lib/apt/lists/*
9
 
 
 
 
10
  # Imposta le variabili d'ambiente per il token e l'utente
11
  ENV HUGGINGFACE_USER=Rathalos
12
  ENV HUGGINGFACE_REPO=training_incite
@@ -16,7 +21,7 @@ WORKDIR /app
16
 
17
  # Copia il file requirements.txt e installa le dipendenze Python
18
  COPY requirements.txt .
19
- RUN pip install --no-cache-dir -r requirements.txt
20
 
21
  # Comando per eseguire lo script di training
22
  CMD ["python", "train_model.py"]
 
1
  # Utilizza l'immagine base ufficiale di Hugging Face per PyTorch con supporto GPU
2
  FROM huggingface/transformers-pytorch-gpu:latest
3
 
4
+ # Aggiorna il sistema e installa le dipendenze di sistema
5
  RUN apt-get update && apt-get install -y \
6
+ python3 \
7
+ python3-pip \
8
  git \
9
  wget \
10
  && rm -rf /var/lib/apt/lists/*
11
 
12
+ # Imposta un alias per python
13
+ RUN ln -s /usr/bin/python3 /usr/bin/python
14
+
15
  # Imposta le variabili d'ambiente per il token e l'utente
16
  ENV HUGGINGFACE_USER=Rathalos
17
  ENV HUGGINGFACE_REPO=training_incite
 
21
 
22
  # Copia il file requirements.txt e installa le dipendenze Python
23
  COPY requirements.txt .
24
+ RUN pip3 install --no-cache-dir -r requirements.txt
25
 
26
  # Comando per eseguire lo script di training
27
  CMD ["python", "train_model.py"]