MLOps_project / Dockerfile
Roboproch's picture
ottimizzazione requirements e versioni per alleggerire
1095f7c
raw
history blame contribute delete
337 Bytes
#dockerfile
# Versione di Python
FROM python:3.12-slim
# Set della working directory
WORKDIR /app
RUN ls
# Copia il file dei requisiti
COPY requirements.txt .
# Installa le dipendenze
RUN pip install --no-cache-dir -r requirements.txt
# Copia della directory in /app
COPY . /app
# Run dello script Python
CMD ["python", "app.py"]