refactor: unify project structure (remove dev configs)
This commit is contained in:
parent
43f7b1b831
commit
6cd7906d5d
2 changed files with 0 additions and 56 deletions
|
|
@ -1,32 +0,0 @@
|
|||
# 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"]
|
||||
|
|
@ -1,24 +0,0 @@
|
|||
# PureStream Development Docker Compose
|
||||
# Uses Dockerfile.dev which COPIES files to avoid Synology Drive filesystem issues
|
||||
|
||||
services:
|
||||
backend:
|
||||
container_name: purestream_dev
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile.dev
|
||||
ports:
|
||||
- "8002:8002"
|
||||
volumes:
|
||||
# Only mount data directories (not code)
|
||||
- purestream_cache:/app/cache
|
||||
- purestream_session:/app/session
|
||||
shm_size: '2gb'
|
||||
|
||||
volumes:
|
||||
purestream_cache:
|
||||
purestream_session:
|
||||
|
||||
# NOTE:
|
||||
# - Frontend is served by backend at http://localhost:8002
|
||||
# - Code changes require rebuild: docker-compose -f docker-compose.dev.yml up --build
|
||||
Loading…
Reference in a new issue