32 lines
778 B
Text
32 lines
778 B
Text
# PureStream Development Dockerfile
|
|
# Copies all files to avoid Synology Drive volume mount issues
|
|
|
|
FROM mcr.microsoft.com/playwright/python:v1.49.1-jammy
|
|
|
|
WORKDIR /app
|
|
|
|
# Copy backend files
|
|
COPY backend/ /app/backend/
|
|
|
|
# Copy pre-built frontend
|
|
COPY frontend/dist/ /app/frontend/dist/
|
|
|
|
# Create directories for cache and session
|
|
RUN mkdir -p /app/cache /app/session
|
|
|
|
# Install Python dependencies
|
|
WORKDIR /app/backend
|
|
RUN pip install --no-cache-dir -r requirements.txt && \
|
|
pip install playwright-stealth && \
|
|
playwright install chromium
|
|
|
|
# Environment variables
|
|
ENV PYTHONUNBUFFERED=1
|
|
ENV CACHE_DIR=/app/cache
|
|
ENV MAX_CACHE_SIZE_MB=500
|
|
ENV CACHE_TTL_HOURS=24
|
|
ENV ADMIN_PASSWORD=admin123
|
|
|
|
EXPOSE 8002
|
|
|
|
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8002"]
|