Version 1.1

This commit is contained in:
2026-02-18 08:24:54 -05:00
parent 4318c8f642
commit fdba869a8d
33 changed files with 2142 additions and 1942 deletions

View File

@@ -36,14 +36,14 @@ COPY requirements.txt .
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Install Playwright browsers
# Install Playwright Chromium (deps already installed above)
RUN playwright install chromium
RUN playwright install-deps chromium
# Copy application files
COPY app.py .
COPY lottery_calculator.py .
COPY ["import requests.py", "."]
COPY config.py .
COPY scrapers.py .
# Expose port
EXPOSE 5000
@@ -51,7 +51,8 @@ EXPOSE 5000
# Set environment variables
ENV FLASK_APP=app.py
ENV FLASK_ENV=production
ENV FLASK_DEBUG=false
ENV PYTHONUNBUFFERED=1
# Run the application
CMD ["python", "app.py"]
# Run with gunicorn for production
CMD ["gunicorn", "--bind", "0.0.0.0:5000", "--workers", "2", "--timeout", "120", "app:app"]