Upload 3 files

This commit is contained in:
Aira Catapang
2026-03-16 02:12:40 +00:00
committed by system
parent 16d334f3bb
commit 295b4ed90a
3 changed files with 183 additions and 0 deletions

24
Dockerfile Normal file
View File

@@ -0,0 +1,24 @@
# Use the official Microsoft Playwright image (Includes all necessary Chromium dependencies)
FROM mcr.microsoft.com/playwright/python:v1.58.0-jammy
# Set the working directory
WORKDIR /app
# Copy requirement files first (for Docker layer caching)
COPY requirements.txt .
# Install Python packages
RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of the application code
COPY . .
# Set environment variables for production cloud deployment
ENV HEADLESS="true"
ENV PORT=8000
# Expose the application port
EXPOSE $PORT
# Run the FastAPI server via Uvicorn
CMD ["python", "main.py"]