repo setup
This commit is contained in:
18
packages/backend/Dockerfile
Normal file
18
packages/backend/Dockerfile
Normal file
@@ -0,0 +1,18 @@
|
||||
# Usa un'immagine Python ufficiale
|
||||
FROM python:3.11-slim
|
||||
|
||||
# Imposta la directory di lavoro
|
||||
WORKDIR /app
|
||||
|
||||
# Copia il file delle dipendenze
|
||||
# Questo step viene messo in cache da Docker se il file non cambia
|
||||
COPY requirements.txt .
|
||||
|
||||
# Installa le dipendenze usando pip
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
# Copia il resto del codice sorgente
|
||||
COPY . .
|
||||
|
||||
# Comando per avviare il server Uvicorn in modalità sviluppo (con hot-reload)
|
||||
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]
|
||||
Reference in New Issue
Block a user