Files
Veeam_dashboard/Dockerfile

19 lines
384 B
Docker

FROM python:3.13-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
RUN python -c "from main import app; print('App loaded')" && \
rm -rf __pycache__ */__pycache__
EXPOSE 8080
ENV DB_URL=sqlite+aiosqlite:////data/veeam_dashboard.db
ENV PYTHONUNBUFFERED=1
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8080"]