docker env vars

This commit is contained in:
Oli Passey
2025-06-28 21:37:06 +01:00
parent 4e4e844721
commit 4f196893f5
6 changed files with 368 additions and 3 deletions

View File

@@ -10,6 +10,14 @@ ENV PYTHONDONTWRITEBYTECODE=1 \
FLASK_APP=main.py \
FLASK_ENV=production
# Optional: Set default configuration via environment variables
# These can be overridden when running the container
ENV DATABASE_PATH=/app/data/price_tracker.db \
DELAY_BETWEEN_REQUESTS=2 \
MAX_CONCURRENT_REQUESTS=1 \
REQUEST_TIMEOUT=30 \
RETRY_ATTEMPTS=3
# Install system dependencies
RUN apt-get update && apt-get install -y \
gcc \