Rathalos commited on
Commit
d9a1df9
·
verified ·
1 Parent(s): 51c29b8

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -6
Dockerfile CHANGED
@@ -1,7 +1,10 @@
1
  # Usa un'immagine di base di Ubuntu
2
  FROM ubuntu:20.04
3
 
4
- # Installare pacchetti necessari
 
 
 
5
  RUN apt-get update && apt-get install -y \
6
  bash \
7
  git \
@@ -9,14 +12,9 @@ RUN apt-get update && apt-get install -y \
9
  python3-pip \
10
  && rm -rf /var/lib/apt/lists/*
11
 
12
- RUN apt-get python
13
-
14
  # Copia i file del progetto
15
  COPY . /app
16
  WORKDIR /app
17
 
18
- # Installa le dipendenze Python
19
- RUN pip3 install subprocess
20
-
21
  # Esegui lo script Python
22
  CMD ["python3", "app.py"]
 
1
  # Usa un'immagine di base di Ubuntu
2
  FROM ubuntu:20.04
3
 
4
+ # Evita i prompt interattivi durante l'installazione
5
+ ARG DEBIAN_FRONTEND=noninteractive
6
+
7
+ # Installare pacchetti necessari, inclusi python3 e pip
8
  RUN apt-get update && apt-get install -y \
9
  bash \
10
  git \
 
12
  python3-pip \
13
  && rm -rf /var/lib/apt/lists/*
14
 
 
 
15
  # Copia i file del progetto
16
  COPY . /app
17
  WORKDIR /app
18
 
 
 
 
19
  # Esegui lo script Python
20
  CMD ["python3", "app.py"]