-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (22 loc) · 797 Bytes
/
Copy pathDockerfile
File metadata and controls
30 lines (22 loc) · 797 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
FROM node:20-bookworm
WORKDIR /app
# System dependencies for AI backend and media processing
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
python3 \
python3-pip \
ffmpeg \
&& rm -rf /var/lib/apt/lists/*
# Install Node dependencies for backend service
COPY Backend/package*.json ./Backend/
RUN npm install --prefix Backend
# Install Python dependencies for AI backend
COPY "AI Backend/requirements.txt" "/app/AI Backend/requirements.txt"
RUN python3 -m pip install --no-cache-dir -r "/app/AI Backend/requirements.txt"
# Copy the full project
COPY . .
# Startup script to launch both servers
COPY docker/start-all.sh /usr/local/bin/start-all.sh
RUN chmod +x /usr/local/bin/start-all.sh
EXPOSE 3000 8001
CMD ["/usr/local/bin/start-all.sh"]