initializare

This commit is contained in:
2025-11-06 20:55:35 +02:00
commit 9956e9c11e
32 changed files with 5500 additions and 0 deletions

27
Dockerfile Normal file
View File

@@ -0,0 +1,27 @@
# Folosim imaginea oficiala Microsoft Playwright cu Python
FROM mcr.microsoft.com/playwright/python:v1.48.0-noble
# Setare working directory
WORKDIR /app
# Copiaza fisierul de requirements
COPY requirements.txt .
# Instaleaza dependente Python
RUN pip install --no-cache-dir -r requirements.txt
# Copiaza codul aplicatiei
COPY btgo_scraper.py config.py ./
# Creaza directoare pentru output si logs
RUN mkdir -p /app/data /app/logs
# Setare variabile de mediu pentru mod headless
ENV HEADLESS=true
ENV PYTHONUNBUFFERED=1
# Setare timezone (optional)
ENV TZ=Europe/Bucharest
# Ruleaza script-ul principal
CMD ["python", "btgo_scraper.py"]