Spaces:
Runtime error
Runtime error
mod dockerfile pro installazione requirements
Browse files- Dockerfile +9 -3
Dockerfile
CHANGED
|
@@ -3,12 +3,18 @@
|
|
| 3 |
# versione di Python
|
| 4 |
FROM python:3.12.1
|
| 5 |
|
| 6 |
-
# copia della directory in /app
|
| 7 |
-
COPY . /app
|
| 8 |
-
|
| 9 |
# set della working directory
|
| 10 |
WORKDIR /app
|
| 11 |
RUN ls
|
| 12 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
# run dello script Python
|
| 14 |
CMD ["python", "app.py"]
|
|
|
|
| 3 |
# versione di Python
|
| 4 |
FROM python:3.12.1
|
| 5 |
|
|
|
|
|
|
|
|
|
|
| 6 |
# set della working directory
|
| 7 |
WORKDIR /app
|
| 8 |
RUN ls
|
| 9 |
|
| 10 |
+
# Copia il file dei requisiti
|
| 11 |
+
COPY requirements.txt .
|
| 12 |
+
|
| 13 |
+
# Installa le dipendenze
|
| 14 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
| 15 |
+
|
| 16 |
+
# copia della directory in /app
|
| 17 |
+
COPY . /app
|
| 18 |
+
|
| 19 |
# run dello script Python
|
| 20 |
CMD ["python", "app.py"]
|