-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (22 loc) · 886 Bytes
/
Dockerfile
File metadata and controls
29 lines (22 loc) · 886 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
FROM python:3.14-slim
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
build-essential \
libgl1 \
libglib2.0-0 \
&& rm -rf /var/lib/apt/lists/*
# Copy project files
COPY pyproject.toml .
# Install python dependencies
# Note: In a real setup, we'd use a requirements.txt or poetry/uv
# Here we extract from pyproject or just install manually known deps
RUN pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu130
RUN pip install fastapi uvicorn[standard] redis celery[redis] python-multipart pillow pydantic-settings transformers ftfy regex tqdm modelscope
COPY . .
# Create storage directories
RUN mkdir -p storage/uploads storage/results
# Expose port
EXPOSE 8000
# Default command (overwritten in docker-compose)
CMD ["uvicorn", "backend.main:app", "--host", "0.0.0.0", "--port", "8000"]