26 lines
455 B
Docker
26 lines
455 B
Docker
FROM python:3.11-slim
|
|
|
|
WORKDIR /app
|
|
|
|
# Install uv
|
|
RUN pip install uv
|
|
|
|
# Install system deps
|
|
RUN apt-get update && apt-get install -y \
|
|
ffmpeg \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# Copy project files
|
|
COPY backend/pyproject.toml backend/requirements.txt ./
|
|
|
|
# Install dependencies using uv
|
|
RUN uv pip install --system -r requirements.txt
|
|
|
|
# Copy code
|
|
COPY backend/ ./backend/
|
|
COPY frontend/ ./frontend/
|
|
|
|
EXPOSE 8000
|
|
|
|
CMD ["python", "backend/main.py"]
|