first commit
This commit is contained in:
24
dockerfile
Normal file
24
dockerfile
Normal 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"]
|
||||
Reference in New Issue
Block a user