-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (25 loc) · 782 Bytes
/
Dockerfile
File metadata and controls
32 lines (25 loc) · 782 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
30
31
32
# ✅ Optimized Dockerfile for Manimate App (FastAPI + Manim)
FROM python:3.10-slim
# Prevent prompts from tzdata, etc.
ENV DEBIAN_FRONTEND=noninteractive
# Install system-level dependencies
RUN apt-get update && apt-get install -y \
ffmpeg \
libcairo2-dev \
libpango1.0-dev \
texlive-full \
build-essential \
pkg-config \
# Clean up apt cache to reduce image size
&& rm -rf /var/lib/apt/lists/*
# Set working directory
WORKDIR /app
# Copy project files
COPY . /app
# Install Python dependencies
RUN pip install --no-cache-dir --upgrade pip \
&& pip install --no-cache-dir -r requirements.txt
# Expose port (default FastAPI port)
EXPOSE 8000
# Run the FastAPI server
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]