daily-briefing/Dockerfile
2026-02-13 00:24:31 +01:00

23 lines
530 B
Docker

FROM python:3.11-slim
WORKDIR /app
# Install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application
COPY src/ ./src/
COPY templates/ ./templates/
COPY static/ ./static/
# Environment variables (will be overridden at runtime)
ENV VIKUNJA_URL=http://10.10.10.10:3456/api/v1
ENV VIKUNJA_TOKEN=""
ENV HA_URL=https://homeassistant.daddelolymp.de
ENV HA_TOKEN=""
ENV WEATHER_LOCATION=Leverkusen
EXPOSE 8080
CMD ["uvicorn", "src.main:app", "--host", "0.0.0.0", "--port", "8080"]