first commit

This commit is contained in:
2025-02-06 15:15:51 +00:00
commit 826d9573d8
8 changed files with 279 additions and 0 deletions

24
dockerfile Normal file
View File

@@ -0,0 +1,24 @@
# Use official Python image
FROM python:3.10
# Set working directory
WORKDIR /app
# Copy dependency files first for caching
COPY requirements.txt .
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Install Playwright and required browsers
RUN pip install playwright
RUN playwright install --with-deps chromium
# Copy application files
COPY app ./app
# Expose ports
EXPOSE 80
# Run FastAPI with Uvicorn
CMD ["sh", "-c", "uvicorn app.main:app --host 0.0.0.0 --port 80 --reload"]