Rathalos commited on
Commit
31aad28
·
verified ·
1 Parent(s): f2aec00
Files changed (1) hide show
  1. Dockerfile +5 -8
Dockerfile CHANGED
@@ -1,7 +1,7 @@
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 \
@@ -12,16 +12,13 @@ RUN apt-get update && apt-get install -y \
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
18
-
19
- # Clona il repository privato
20
- WORKDIR /app
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"]
 
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
  python3 \
7
  python3-pip \
 
12
  # Imposta un alias per python
13
  RUN ln -s /usr/bin/python3 /usr/bin/python
14
 
 
 
 
 
 
 
 
15
  # Copia il file requirements.txt e installa le dipendenze Python
16
  COPY requirements.txt .
17
  RUN pip3 install --no-cache-dir -r requirements.txt
18
 
19
+ # Copia tutti i file dalla directory locale alla directory /app nel container
20
+ COPY . /app
21
+ WORKDIR /app
22
+
23
  # Comando per eseguire lo script di training
24
  CMD ["python", "train_model.py"]