mirror of
https://github.com/mblanke/Lottery-Tracker.git
synced 2026-03-01 14:10:22 -05:00
Version 1.1
This commit is contained in:
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user