AleRive commited on
Commit
0fe2e26
·
verified ·
1 Parent(s): 911ddaf

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +16 -0
Dockerfile ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9
2
+
3
+ # Imposta la directory di lavoro
4
+ WORKDIR /app
5
+
6
+ # Copia tutti i file
7
+ COPY . /app
8
+
9
+ # Installa le dipendenze
10
+ RUN pip install --no-cache-dir -r requirements.txt
11
+
12
+ # Espone la porta del server
13
+ EXPOSE 7860
14
+
15
+ # Comando per avviare il server FastAPI
16
+ CMD ["python", "app.py"]