Initial commit

This commit is contained in:
2026-01-27 13:52:44 +01:00
commit 209620a234
5 changed files with 451 additions and 0 deletions

23
Dockerfile Normal file
View File

@@ -0,0 +1,23 @@
FROM python:3.12-slim
WORKDIR /app
# Installa dipendenze
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copia codice
COPY app/ ./app/
# Crea directory per i dati
RUN mkdir -p /data
# Variabili d'ambiente
ENV DATA_PATH=/data/hotspots.json
ENV PYTHONUNBUFFERED=1
# Esponi porta
EXPOSE 8000
# Avvia server
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]