forked from UniSalento-IDALab-IoTCourse-2023-2024/wot-project-2023-2024-SmartLocAI_Dashboard-IzziBarone
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (20 loc) · 670 Bytes
/
Dockerfile
File metadata and controls
25 lines (20 loc) · 670 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Usa l'immagine base ufficiale di Python
FROM python:3.11-slim
# Imposta la cartella di lavoro all'interno del container
WORKDIR /app
# Copia il requirements.txt e installa le dipendenze
COPY requirements.txt /app/
RUN apt-get update && apt-get install -y \
build-essential \
curl \
software-properties-common \
libhdf5-dev \
python3-dev \
pkg-config
RUN pip install --no-cache-dir -r requirements.txt
# Copia tutti i file di codice nell'immagine
COPY . /app
# Espone la porta 8501 per Streamlit
EXPOSE 8501
# Comando per avviare l'applicazione Streamlit
CMD ["streamlit", "run", "Home.py", "--server.port=8501", "--server.address=0.0.0.0"]